Open ova2 opened 8 years ago
Please add "High compliancy" mode as in Babel (checkbox here https://babeljs.io/repl/). Currently this ES6 code
if (true) { console.log(typeof value); // ReferenceError! let value = "blue"; // Temporal Dead Zone }
is transpiled to
"use strict"; if (true) { console.log(typeof value); // ReferenceError! var value = "blue"; // Temporal Dead Zone }
and does not throw ReferenceError.
ReferenceError
Please add "High compliancy" mode as in Babel (checkbox here https://babeljs.io/repl/). Currently this ES6 code
is transpiled to
and does not throw
ReferenceError
.