Open olejorgenb opened 5 years ago
let foo = (function() { return 1; })
(function() { return 1; })()
Cause by Reflect.parse weirdness - the opening parenthesis is not included in the span..:
Reflect.parse
let code = `(function() { return 1; })`; let body = Reflect.parse (code, {line: 0}) let lines = code.split('\n') span(lines, body.body[0].loc) // "function() { return 1; })"
Not trivial to to work around unfortunately.
let foo = (function() { return 1; })
(function() { return 1; })()
Cause by
Reflect.parse
weirdness - the opening parenthesis is not included in the span..:Not trivial to to work around unfortunately.