Fun impossible Firefox JS challenge

Brendan Eich brendan at mozilla.org
Thu Apr 12 10:51:08 PDT 2012


Yes! IE and Firefox agree! :-P

I'm not suggesting "we" win, just glad not to be all alone on this one. 
;-) Thanks for testing.

Allen, your thoughts?

/be

Domenic Denicola wrote:
> var tru\u0065; =>  "Expected identifier" error in IE9.
> console.log(fals\u0065) =>  "Syntax error" in IE9.
>
> Can test IE10 when I get home from work.
> ________________________________________
> From: es-discuss-bounces at mozilla.org [es-discuss-bounces at mozilla.org] on behalf of Brendan Eich [brendan at mozilla.org]
> Sent: Thursday, April 12, 2012 13:38
> To: Allen Wirfs-Brock
> Cc: es-discuss Steen
> Subject: Re: Fun impossible Firefox JS challenge
>
> 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.
>
> /be
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>


More information about the es-discuss mailing list