diff options
author | 2023-04-09 07:49:08 -0700 | |
---|---|---|
committer | 2023-04-09 07:49:08 -0700 | |
commit | 5c37d0f2a57af40352ef8a30f941551c24fe06eb (patch) | |
tree | e0ca5f8146cb7506a717a84ae5dfb4e92dfd6c51 | |
parent | 7bd6a1f86d99c1374cb1eb15ff263dc352a8837b (diff) | |
download | bun-5c37d0f2a57af40352ef8a30f941551c24fe06eb.tar.gz bun-5c37d0f2a57af40352ef8a30f941551c24fe06eb.tar.zst bun-5c37d0f2a57af40352ef8a30f941551c24fe06eb.zip |
Parse import attributes
https://github.com/tc39/proposal-import-attributes#import-attributes
-rw-r--r-- | src/js_parser.zig | 2 |
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); |