Jason Orendorff wrote:
As long as
it's impossible to have code that parses in both modes, with different
meanings, it's not so bad.
Then we could have trouble, but perhaps do not:
function f(a = arguments[0] = 42) {
"use strict";
...
}
The "use strict" defeats arguments aliasing at runtime. Of course
nothing differs in static semantics here, so this is actually easier to
deal with than recasting lambdas in defaults as strict functions, e.g.
The arguments object's semantic differences are entirely runtime
semantic diffs.
Still, it's bothersome. We need to enforce the subset relationships
you've identified: ES5 strict < ES6, and no static semantic deviations
down the road. Summoning Mark along with Allen.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss