Open gabejohnson opened 7 years ago
As noted #715
import { fromPunctuator } from 'sweet.js/helpers' for syntax; syntax $$ = (ctx) => { var dummy = #`dummy`.get(0); return #`${fromPunctuator(dummy, '...')}${ctx}`; }; function foo(args){} foo( $$ [0] );
fails with Error: expecting a , punctuator [ 0 ], but
Error: expecting a , punctuator [ 0 ]
function foo(args){} foo( ... [0] );
is fine.
Same with
let [$$ x] = [1]; // Error: unexpected token __x__
but this is fine
let x = [$$ [0]];
This may be related to #716. Hopefully it'll come out in the wash.
As noted #715
fails with
Error: expecting a , punctuator [ 0 ]
, butis fine.
Same with
but this is fine
This may be related to #716. Hopefully it'll come out in the wash.