Fun impossible Firefox JS challenge

Brendan Eich brendan at
Thu Apr 12 09:51:20 PDT 2012

Lasse Reichstein wrote:
> Is this a deliberate Mozilla change

This is a hold-over from the past. It dates from ES4 days when the draft 
spec in TC39 proposed unreserving keywords not only after . in 
expressions and before : in object literal property assignments, but 
also after 'function'.

We have a bug on this: In it you'll see 
comments from dherman and me last year trying to hold off on fixing the 
bug, in case Harmony adopts this proposal. If TC39 can decisively reject 
it, we'll fix the bug. Maybe we should just fix the bug anyway but I 
suspect we'll break some Mozilla-only code out there, so this won't 
happen quickly.


More information about the es-discuss mailing list