archives

« Bugzilla Issues Index

#1798 — Add a test making sure that reserved keywords aren't allowed as function identifiers


Context:
https://mail.mozilla.org/pipermail/es-discuss/2013-August/032804.html
https://mail.mozilla.org/pipermail/es-discuss/2013-August/032811.html

Currently SpiderMonkey allows that and the test suite doesn't seem to capture this deviation. To prevent this deviation from conforming implementations, a test might be a good idea.


This does seem like a test hole. However, this extension is allowed, and we often don't add tests to lock down extensions that don't cause interop issues (eg. we aren't failing everyone for allowing functions in blocks). That said, I'll default to adding tests unless someone wants to push back :)