Skip to content

json modules should not treated as affecting global scope #44690

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

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

sokra
Copy link
Contributor

@sokra sokra commented Jun 22, 2021

This makes changing json modules more performant.

Before they did invalidate all other modules.
After that change they only invalidate modules that import them.

JSON does not leak anything into the global scope

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jun 22, 2021
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

Copy link
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

@andrewbranch andrewbranch requested a review from amcasey June 23, 2021 14:40
@amcasey
Copy link
Member

amcasey commented Jun 23, 2021

The idea seems great but I have no idea if there's a weird corner case where JSON is global.

@amcasey amcasey merged commit fd49b26 into microsoft:main Jun 23, 2021
@sokra sokra deleted the perf/json-affects-global-scope branch July 8, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants