You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm the author of esbuild and someone filed a correctness bug against my JavaScript parser: evanw/esbuild#835. Turns out acorn has the same issue, so I'm filing this here too.
Repro with acorn v8.0.5:
eval('[[...[], 0].x] = [0]')// this works fine without an errorrequire('acorn').parse('[[...[], 0].x] = [0]',{ecmaVersion: 'latest'})// this throws an error
Running this code gives SyntaxError: Comma is not permitted after the rest element which is unexpected.
The text was updated successfully, but these errors were encountered:
I'm the author of esbuild and someone filed a correctness bug against my JavaScript parser: evanw/esbuild#835. Turns out acorn has the same issue, so I'm filing this here too.
Repro with acorn v8.0.5:
Running this code gives
SyntaxError: Comma is not permitted after the rest element
which is unexpected.The text was updated successfully, but these errors were encountered: