Closed olejorgenb closed 6 years ago
Not sure if we should add a special case or just parse everything?
case 'BlockStatement':
// Block AST nodes omits the ending '}'
var block = `${span(lines, statement.loc)} }`;
if (statement.body[-1].type === 'BlockStatement') {
// Omission of ending '}' nests. (but only one level..)
block += " }"
}
return block;
Fixes the problem.
Keywords: Spidermonkey firefox Reflect.parse