* Update two esprima tests to the new "expected TOKEN" messages
* Update dynamic-import to use "expected (" error message
This commit is contained in:
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");
|
||||
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ; (1:2)"
|
||||
}
|
||||
}
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ; (1:2)"
|
||||
}
|
||||
}
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (2:15)"
|
||||
"throws": "Unexpected token, expected ( (2:15)"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user