Fun impossible Firefox JS challenge

Brendan Eich brendan at
Thu Apr 12 10:38:07 PDT 2012

Allen Wirfs-Brock wrote:
> 1) Understand the actual browser interop situation. For example, do 
> all major browsers accept:
>       var tru\u0065;

SpiderMonkey shell:

js> var tru\u0065;
typein:1: SyntaxError: missing variable name:
typein:1: var tru\u0065;
typein:1: ....^

It looks like Carakan (Opera), JSC and V8 allow this. I can't test IE.

> 2) Within the constraints of 1) decide what we actually want to 
> specify.  Do we want
>       console.log(fals\u0065)
> to print "false" or "undefined"?

Carakan, JSC and V8 alert "undefined".

Anyone have IE results?

Looks like SpiderMonkey implemented ES5 not ES3, probably accidentally 
and ahead of time.


More information about the es-discuss mailing list