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

fix #977 Support ES2019 JSON superset #978

Merged
merged 1 commit into from
Jun 30, 2021
Merged

fix #977 Support ES2019 JSON superset #978

merged 1 commit into from
Jun 30, 2021

Conversation

tuchida
Copy link
Contributor

@tuchida tuchida commented Jun 30, 2021

Closes #977

Is it necessary to check compilerEnv.getLanguageVersion()?
These do not seem to be checked.

@p-bakker
Copy link
Collaborator

Nice going!

IMHO it doesn't need to check the languageVersion, as this is a change that previously would be a SyntaxError, thus it cannot really break existing implementations (just like the other two you mentioned are syntax or (global) object additions that don't alter existing behavior)

@gbrail
Copy link
Collaborator

gbrail commented Jun 30, 2021

Yes -- I agree that it's OK to add features like this because they result in code that used to not work working, as opposed to features that result in code that used to work stopping...

I'll test this myself and get back...

@gbrail
Copy link
Collaborator

gbrail commented Jun 30, 2021

This looks good to me too. Thanks!

@gbrail gbrail merged commit 520d594 into mozilla:master Jun 30, 2021
@tuchida tuchida deleted the json-superset branch January 6, 2022 06:58
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

Successfully merging this pull request may close these issues.

Support ES2019 JSON superset
3 participants