Need help with compat-table?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

4.0K Stars 898 Forks Other 3.6K Commits 114 Opened issues


ECMAScript 5/6/7 compatibility tables

Services available


Need anything else?

Contributors list

ECMAScript compatibility tables


Bitdeli Badge

Editing the tests

Edit the

, or
files to adjust the tests and their recorded browser results. Run
node build.js
to build the HTML files from these JavaScript sources.

The ES6 tests themselves should be written in pure ES3, except for the sole ES6 feature being tested (as well as any ES5 features strictly required to use the ES6 feature). ES Next tests may use any ES5 features that they wish, and only the ES6 features strictly required to use the ES Next feature.

The test code is placed in multi-line comments (as in this hack), so that Node.js can parse the data scripts without throwing syntax errors when encountering features it does not support. The

script will wrap the code in an
call inside a
, so the tests themselves do not need to catch errors that non-supporting platforms may throw.

Most tests have a

rating, which affects how a platform's total support percentage is calculated. A test rated
(representing a landmark, transformative feature) is worth 1, one rated
(representing a significant feature that's less universally useful, or is primarily connected to another feature) is worth 0.5, and one rated
(representing a useful but subtle improvement from the previous spec) is worth 0.25.
(0.125) should be reserved for very meager changes (such as changes to an existing function's parameters or side-effects) that nonetheless don't fall under the category of another feature.

In order to test compilers


npm install
to install the compilers under test (and remember to
npm update
them frequently). Then run
node build.js compilers
to create compiler test pages under
. Currently only the ES6 tests produce compiler test pages. Open the compilers' HTML files in a browser with close to zero native ES6 support, such as Internet Explorer 9 (although its lack of support for strict mode will cause some tests to fail), Opera 12, or Safari 5.1 (bearing in mind their native support for TypedArrays,
and such).

Note that some tests cannot be compiled correctly, as they rely on runtime

results to ensure that, for instance, certain syntactic constructs are syntax errors. These will fail on the compiler test pages. Support for those features should be divined manually.

In order to test Node.js

After installing dependencies using

npm install
, first compile a fresh ES6 HTML file using
node build.js

Then, run

node .
, where
is the executable you wish to test, along with any desired flags (such as
). The results should be printed in colour in stdout: green results indicate correct support, cyan results indicate support that incorrectly requires strict mode, and red indicates no support.

Note that this script is currently hard-coded to only display ES6 results.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.