To simplify parsing ES 2016 disallows "use strict" in functions with
non-simple parameters, like defaults or rest.
For example `function f(a = 1) { "use strict"; }` is going to start
throwing.
Chrome, JSC and Edge already made this change.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1272784
Link to standard:
https://tc39.github.io/ecma262/#sec-function-definitions-static-semantics-early-errors
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform