* Update two esprima tests to the new "expected TOKEN" messages
* Update dynamic-import to use "expected (" error message
This commit is contained in:
committed by
Henry Zhu
parent
3525c00397
commit
b5877f04b1
@@ -396,7 +396,7 @@ pp.parseExprAtom = function (refShorthandDefaultPos) {
|
||||
node = this.startNode();
|
||||
this.next();
|
||||
if (!this.match(tt.parenL)) {
|
||||
this.unexpected();
|
||||
this.unexpected(null, tt.parenL);
|
||||
}
|
||||
return this.finishNode(node, "Import");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user