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 crash in expando assignment to alias #34566

Merged
merged 2 commits into from
Oct 18, 2019

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Oct 18, 2019

This PR disallows expando assignments

Fixes #34493, but disallows the prototype assignment, which never worked.

This PR disallows expando assignments

Fixes #34493, but disallows the prototype assignment nonetheless.
@andrewbranch
Copy link
Member

Note: this is a superset of #34553

@sandersn
Copy link
Member Author

Sorry, that was a mistake because I was testing #34553 locally and forgot. I reverted those changes because it's much too confusing otherwise.

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.

Is the fact that expandos don't work on alias symbols documented anywhere? I guess people don’t run into this very often.

@sandersn
Copy link
Member Author

sandersn commented Oct 18, 2019

Given that I didn't think of this before, I'd guess not. Our test coverage is heavily biased toward commonjs importing commonjs.

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.

--allowJs: Cannot update prototype of imported class (3.7.0 regression)
2 participants