From 0976a7ca2c04bf705acd91987c7f2c90bd7104ca Mon Sep 17 00:00:00 2001 From: viclm Date: Tue, 8 Mar 2016 15:43:01 +0800 Subject: [PATCH] parenthesis string is passed --- lib/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse.js b/lib/parse.js index 0a6072af..a8482135 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -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([]);