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

Allow transpilation for --language_out=ES5 as well as ES3. #550

Closed
MatrixFrog opened this issue Jul 14, 2014 · 0 comments
Closed

Allow transpilation for --language_out=ES5 as well as ES3. #550

MatrixFrog opened this issue Jul 14, 2014 · 0 comments
Assignees

Comments

@MatrixFrog
Copy link
Contributor

From the discussion at #549

It would make sense to have both 6-to-3 and 6-to-5 modes. The only difference would be, in 6-to-3, we'd report an error if we see getters or setters (because we can't transpile them) but in 6-to-5, we'd leave them alone.

You'd use 6-to-3 if you need to support old browsers that don't have get/set, and you could use 6-to-5 otherwise.

@MatrixFrog MatrixFrog self-assigned this Sep 22, 2014
pauldraper pushed a commit to pauldraper/closure-compiler that referenced this issue Oct 6, 2014
Fixes google#550
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=76128389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant