This commit is contained in:
viclm 2016-03-09 13:08:35 +00:00
commit edeec23a5c
2 changed files with 9 additions and 1 deletions

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([]);

View File

@ -0,0 +1,8 @@
parenthesis_strings_in_parenthesis: {
input: {
('(');
a(')');
}
expect_exact: '"(";a(")");'
}