Closed Protryon closed 5 years ago
I'd prefer if we could accomplish this without introducing more global state in the parser. I think we can instead change the check for lookaheadLexicalDeclaration
in parseStatementHelper
to a check specifically for let [
, with no other changes.
I'd like this to wait on https://github.com/shapesecurity/shift-parser-js/pull/395 and be rebased on top of it, so that we can make sure all of the xfail'd tests for this bug start passing.