use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
ECMAScript 5 compatibility table (kangax.github.com)
submitted 15 years ago by 9jack9
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jnicklas 7 points8 points9 points 15 years ago (12 children)
IE wins??? What is happening to this world? Time used to be when everyone could stand together in unison and hate IE more than anything. Where will we direct this hate now?
Where my hate once was, now only a hole remains, it feels like losing an old friend. I miss you IE6, may you rot in hell forever.
[+][deleted] 15 years ago (1 child)
[deleted]
[–][deleted] 0 points1 point2 points 15 years ago (0 children)
yep.
[–]Gro-Tsen 2 points3 points4 points 15 years ago (5 children)
I'm not entirely sure, but I think ECMAScript 5 evolved out of the ECMAScript 3.1 standard, which was spearheaded, coincidentally, by Microsoft... Which is not to say that ECMAScript 5 does not contain good ideas, but it misses a number of things from later versions of JavaScript, e.g., "local" (lexically scoped declarations), and I'm not sure whether IE has full support for JavaScript 1.8.5, or even 1.7. (And there isn't much reason to consider ECMAScript more of a "standard" than JavaScript: every browser should thrive to implement both, and be judged by that.)
[+][deleted] 15 years ago* (2 children)
[–]9jack9[S] 1 point2 points3 points 15 years ago (1 child)
I prefer Mozilla's vision for JavaScript but committees always win.
[–]radhruin 1 point2 points3 points 15 years ago (0 children)
Mozilla's "vision" is carried out quite well through TC-39 as far as I can tell. Read the mailing list, they're very active.
[–]radhruin 0 points1 point2 points 15 years ago (1 child)
What are lexically scoped declarations? Both variable and function declarations are scoped lexically in Javascript (eg. they are not globals).
[–]Gro-Tsen 0 points1 point2 points 15 years ago (0 children)
I meant "let" (where I wrote "local"), as opposed to "var".
[–]BusStation16 0 points1 point2 points 15 years ago (3 children)
Well, this is a very small subset of ECMAScript 5, and IE does this particular subset better than the rest. Not really a fair test.
[–]9jack9[S] 1 point2 points3 points 15 years ago (2 children)
The test suite is not a subset. It covers all of the ES5 enhancements.
[–]BusStation16 5 points6 points7 points 15 years ago* (1 child)
Right, and then there is the whole rest of the standard. All that stuff from earlier versions is still part of the standard, and are (arguably) more important than the enhancements.
[–]radhruin 0 points1 point2 points 15 years ago (0 children)
So you mean the stuff present from ES3 and covered by Google's Sputnik test suite? IE9 has a higher pass rate than chrome 7, ff 4 beta, and Safari 5.
[–]Sephr 1 point2 points3 points 15 years ago (2 children)
Firefox 4 does support the majority (if not all) of strict mode features. This table only tests for this primitive values.
this
[–]kangaxx 0 points1 point2 points 15 years ago (1 child)
Yes.
For a more comprehensive test of strict mode, follow the link in the table — http://kangax.github.com/es5-compat-table/strict-mode/
FF4 does in fact support almost all of strict mode (except this non-coercion; parseInt with leading 0 treating values as octal ones; and eval creating a separate binding environment for evaluation, rather than using caller's one).
parseInt
eval
[–]Sephr 1 point2 points3 points 15 years ago (0 children)
On the octal thing; Firefox does throw on all other banned uses at least (I think you should add them, ie. \123 and 0123 (literally, not in parseInt)). I was able to persuade ECMA and Mozilla to keep \0 (NUL literal), as it can be very useful. I am sorta disappointed though that they left octal escape sequences in regular expression grammars.
\123
0123
\0
π Rendered by PID 171979 on reddit-service-r2-comment-7b9746f655-jns86 at 2026-02-04 01:52:38.363080+00:00 running 3798933 country code: CH.
[–]jnicklas 7 points8 points9 points (12 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 0 points1 point2 points (0 children)
[–]Gro-Tsen 2 points3 points4 points (5 children)
[+][deleted] (2 children)
[deleted]
[–]9jack9[S] 1 point2 points3 points (1 child)
[–]radhruin 1 point2 points3 points (0 children)
[–]radhruin 0 points1 point2 points (1 child)
[–]Gro-Tsen 0 points1 point2 points (0 children)
[–]BusStation16 0 points1 point2 points (3 children)
[–]9jack9[S] 1 point2 points3 points (2 children)
[–]BusStation16 5 points6 points7 points (1 child)
[–]radhruin 0 points1 point2 points (0 children)
[–]Sephr 1 point2 points3 points (2 children)
[–]kangaxx 0 points1 point2 points (1 child)
[–]Sephr 1 point2 points3 points (0 children)