>
>
> Validating default parameters against strict mode seems no worse in kind
> (if not degree) than validating parameter lists against duplicates was in
> ES5 days. Gross, but doable and I think better than leaving default
> expressions non-strict.
>
>
Perhaps you're right.  In addition to what we're doing already in ES5 and
now ES6 destructuring patterns, I suppose you'd need to recurse into
default expressions and look for any bad `delete` expressions, any
WithStatements, and any bad BindingIdentifiers.  And rinse and repeat with
any FormalParameters encountered.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to