10
lib/parse.js
10
lib/parse.js
@@ -858,13 +858,11 @@ function parse($TEXT, options) {
|
||||
next();
|
||||
return export_();
|
||||
case "import":
|
||||
if (!toplevel && options.module !== "") unexpected();
|
||||
var token = peek();
|
||||
if (!(token.type == "punc" && /^[(.]$/.test(token.value))) {
|
||||
next();
|
||||
return import_();
|
||||
}
|
||||
break;
|
||||
if (token.type == "punc" && /^[(.]$/.test(token.value)) break;
|
||||
if (!toplevel && options.module !== "") unexpected();
|
||||
next();
|
||||
return import_();
|
||||
case "let":
|
||||
if (is_vardefs()) {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user