Skip to content

Commit

Permalink
parenthesis string is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
viclm committed Mar 8, 2016
1 parent 0b30337 commit 0976a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ function parse($TEXT, options) {
var maybe_assign = function(no_in) {
var start = S.token;

if (start.value == "(" && peek().value == ")") {
if (start.value == "(" && start.type == "punc" && peek().value == ")") {
next();
next();
return arrow_function([]);
Expand Down

0 comments on commit 0976a7c

Please sign in to comment.