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.
Allen _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

