Kevin Smith wrote:
> OK. One last question: I'm reading that the strictness of arrow
> functions is determined only the strictness of their enclosing
> context, and not by any prologues inside of them. True?
>
> x => { "use strict"; with (x) {} } // Not a strict-mode error
Spec bug if so -- that should make the arrow function so stated have
strict code.
/be
domenic at domenicdenicola.com (2013-12-10T01:26:50.374Z)
Spec bug if so -- that should make the arrow function so stated have
strict code.
Kevin Smith wrote: > OK. One last question: I'm reading that the strictness of arrow > functions is determined only the strictness of their enclosing > context, and not by any prologues inside of them. True? > > x => { "use strict"; with (x) {} } // Not a strict-mode error Spec bug if so -- that should make the arrow function so stated have strict code. /be