Skip to content
New issue

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

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

Already on GitHub? # to your account

Do not propagate user-code across Abstract Closure boundaries #382

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

syg
Copy link
Contributor

@syg syg commented Dec 9, 2021

No description provided.

@syg syg requested a review from bakkot December 9, 2021 01:21
@@ -223,7 +237,7 @@ export default class Xref extends Builder {
}
if (this.addEffects !== null) {
if (effects !== null) {
effects.push(...this.addEffects);
effects = effects.concat(...this.addEffects);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a drive-by. Was mutating the AO's existing effects list everytime a particular call site manually added an effect.

@bakkot bakkot merged commit d0d9add into tc39:main Dec 9, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants