On Nov 25, 2013, at 5:00 PM, Kevin Smith wrote:
>
> So we parse it as an identifier, just as we parse duplicate formal
> parameters. Then if we see "use strict", we must post-process the parse tree
> and throw an error. Kind of a shame, but there it is.
>
>
> To use Waldemar's word, I wonder if that might get obnoxious:
>
> function(a = function(yield = function(arguments = function(eval) {}) {})
> {}) {
> "use strict"; /* Doh! */
> }
>
> : )
The handling of 'yield' in this case is no more obnoxious than any of the other
strict mode restriction that apply to those functions that are defined in the
parameter list.
Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss