ES6 in the house

Make it look like your running ES6 (EcmaScript.Next) right in the dev tools.

If you look at the source code in the dev tools on a source map supporting browser (WebKit nightly/Chrome Canary) you'll see it's running a file called repl.js which is actually ES6. Behind the scenes it's running the ES3 compiled version of that called es6.js but the source map allows it to appear as though it's running natively.

You can change the code below to test out ES6 conventions and it will render the compiled version and a source map.

Source Map


Compiled code