parenthesis string is passed

This commit is contained in:
viclm 2016-03-08 15:43:01 +08:00
parent 0b303379c0
commit 0976a7ca2c

View File

@ -1794,7 +1794,7 @@ function parse($TEXT, options) {
var maybe_assign = function(no_in) { var maybe_assign = function(no_in) {
var start = S.token; var start = S.token;
if (start.value == "(" && peek().value == ")") { if (start.value == "(" && start.type == "punc" && peek().value == ")") {
next(); next();
next(); next();
return arrow_function([]); return arrow_function([]);