>
>
> Perhaps you're right.  In addition to what we're doing already in ES5 and
> now ES6 destructuring patterns, I suppose you'd need to recurse into
> default expressions and look for any bad `delete` expressions, any
> WithStatements, and any bad BindingIdentifiers.  And rinse and repeat with
> any FormalParameters encountered.
>
>
I wonder if you'd need to go back to the lexer in some cases:

    function(a = let) {
      "use strict";
    }

After seeing the "use strict", I'd have to go back and re-scan the "let" to
find out that it was actually a keyword in this context (and hence a syntax
error).
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to