Closed michaelficarra closed 7 years ago
This rejects (-a) ** b
, which should also be added as a test.
Because () => a ** b
parses as () => (a ** b)
, I'm pretty sure you can get away with storing the first token of the LHS, and only throwing if the first token was not (
. But it's kind of a hack.
Oh yeah. Whoops.
Fixed and added test.
Fixes #304.
We should open a PR to test262-parser-tests adding these tests.