parse import.meta correctly (#4836)
This commit is contained in:
@@ -854,7 +854,8 @@ function parse($TEXT, options) {
|
||||
next();
|
||||
return export_();
|
||||
case "import":
|
||||
if (!is_token(peek(), "punc", "(")) {
|
||||
var token = peek();
|
||||
if (!(token.type == "punc" && /^[(.]$/.test(token.value))) {
|
||||
next();
|
||||
return import_();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user