es6now
es6now copied to clipboard
ECMAScript 6 to 5 Compiler and Runtime Environment
Early exits from for-of (anytime control leaves the loop before iterator.done is true) should close the iterator using the "return" method, if it exists. This can be implemented using try/finally:...
It would be nice if we could translate into ES3 compatible code for use on websites still supporting IE8. Investigate the LOE involved. Translation issues: - Reserved words as object...
We currently wait for promises returned from the REPL, but this doesn't work quite right. Ideally we would be able to use "await" within the REPL.
What are the desired semantics? Clearly we should be able to delegate to other async iterators. What about synchronous iterators?
Currently we have a decent set of tests for translation, but we need to also add a set of tests to prove that the translations actually behave as intended.