Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Fix up #172 (#177)
Browse files Browse the repository at this point in the history
* Update two esprima tests to the new "expected TOKEN" messages

* Update dynamic-import to use "expected (" error message
  • Loading branch information
motiz88 authored and hzoo committed Oct 14, 2016
1 parent 3525c00 commit b5877f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/parser/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ; (1:2)"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected ; (1:2)"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:15)"
"throws": "Unexpected token, expected ( (2:15)"
}

0 comments on commit b5877f0

Please sign in to comment.