« Bugzilla Issues Index

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


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 :)