aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-09 07:49:08 -0700
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-04-10 11:58:19 -0700
commita107a7cd95fb4e376278d06ba178d42f893d2d83 (patch)
tree76f4ea426c56996818b910b8c95778a46b6616cf
parent742b8f3f1b4d399def01d5494b911e5612e45baa (diff)
downloadbun-a107a7cd95fb4e376278d06ba178d42f893d2d83.tar.gz
bun-a107a7cd95fb4e376278d06ba178d42f893d2d83.tar.zst
bun-a107a7cd95fb4e376278d06ba178d42f893d2d83.zip
Parse import attributes
https://github.com/tc39/proposal-import-attributes#import-attributes
-rw-r--r--src/js_parser.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig
index c3492c040..f06cea752 100644
--- a/src/js_parser.zig
+++ b/src/js_parser.zig
@@ -10309,7 +10309,7 @@ fn NewParser_(
// But some code may still use "assert"
// We support both and treat them identically.
// Once Prettier & TypeScript support import attributes, we will add runtime support
- p.lexer.isContextualKeyword("assert") or p.lexer.isContextualKeyword("with")))
+ p.lexer.isContextualKeyword("assert") or p.lexer.token == .t_with))
{
try p.lexer.next();
try p.lexer.expect(.t_open_brace);