> So the only code that would break would be expression statements
> consisting of the single identifier "let", followed by an ASI'd newline.
> Is that right?
>
To reply to myself, there's also this:
var let = [], num = 0;
let[num] = f();
Hmmm....
I suppose a radical but safe solution would be to only allow let in strict
mode. A carrot (or stick, depending on your point of view) to get users
into strict?
- Kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss