Can strict parameters shadow strict function names?

Allen Wirfs-Brock allen at
Thu Jun 9 18:28:01 UTC 2016

Yes, they can.  The JSC behavior is incorrect.

The possibility of shadowing function expression names by parameters (or other local declarations) exists as far back as ES3.  When strict mode was added in ES5 we didn’t include any restrictions on that shadowing (I don’t recall even considering it). Adding such a restriction in ES2015 (or now) would have been a breaking change.


More information about the es-discuss mailing list