Skip to content

Commit

Permalink
Fix up babel#172 (babel#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 Kristof degrave committed Oct 27, 2016
1 parent 4479bae commit ebda952
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 ebda952

Please sign in to comment.