mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Parse import attributes
https://github.com/tc39/proposal-import-attributes#import-attributes
This commit is contained in:
committed by
Dylan Conway
parent
742b8f3f1b
commit
a107a7cd95
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user