Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "High compliancy" mode #78

Open
ova2 opened this issue Feb 18, 2016 · 0 comments
Open

Add "High compliancy" mode #78

ova2 opened this issue Feb 18, 2016 · 0 comments

Comments

@ova2
Copy link

ova2 commented Feb 18, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant