Fun impossible Firefox JS challenge

Wes Garland wes at page.ca
Fri Apr 13 04:34:31 PDT 2012


On 12 April 2012 15:37, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:

> Right chrome and safari log "undefined" in that case.  FF and IE9 syntax
> error out on the var declaration.
>

As long as we're exploring web compat, here's a historical view of
SpiderMonkey behaviour --

JS 1.8.5 (~ Firefox 4) treats fals\u0065 as a valid identifier that is
distinct from false.
Same for JS 1.7 (~ Firefox 3)
Same for JS 1.6 (~ Firefox 2)
Same for JS 1.5 (ES-3)
JS 1.4.1 does not allow unicode escapes in identifiers



-- 
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120413/36809139/attachment.html>


More information about the es-discuss mailing list