Re: Intent to unship: Use strict in function with non-simple parameters

2016-10-07 Thread Shu-yu Guo
No evidence either way. Given we've had non-compat parameter defaults for a while, your worry is legit. We'll deal with web compat issues with JS as it comes up -- unfortunately the reality is that until we ship something, we have very little idea if it's breaking. On Fri, Oct 7, 2016 at 8:14 AM,

Re: Intent to unship: Use strict in function with non-simple parameters

2016-10-07 Thread Ehsan Akhgari
On 2016-10-07 8:01 AM, Tom Schuster wrote: > 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.