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
For the record, there is no grammar ambiguity here as of ES2016 (as far as I can tell, anyway) since while is a keyword. I fixed this one by adding while to the canInsertSemicolon whitelist, as I have with other illiberal ASI cases.
(There may be grammar ambiguities with do expressions enabled.)
Activity
rattrayalex commentedon Mar 26, 2018
Iirc there was a grammar ambiguity otherwise. I don't recall what it was, might be possible to tell from the tests.
Add `while` to valid ASI tokens
wcjohnson commentedon May 15, 2018
For the record, there is no grammar ambiguity here as of ES2016 (as far as I can tell, anyway) since
whileis a keyword. I fixed this one by addingwhileto thecanInsertSemicolonwhitelist, as I have with other illiberal ASI cases.(There may be grammar ambiguities with
doexpressions enabled.)3.1