* Update two esprima tests to the new "expected TOKEN" messages

* Update dynamic-import to use "expected (" error message
This commit is contained in:
Moti Zilberman 2016-10-14 23:50:07 +03:00 committed by Henry Zhu
parent 3525c00397
commit b5877f04b1
4 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ; (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ; (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:15)"
"throws": "Unexpected token, expected ( (2:15)"
}