Skip to content

Fix crash in expando assignment to alias - #34566

Merged
Nathan Shively-Sanders (sandersn) merged 2 commits into
masterfrom
fix-expando-assignment-to-alias
Oct 18, 2019
Merged

Nathan Shively-Sanders (sandersn) merged 2 commits into
masterfrom
fix-expando-assignment-to-alias

Conversation

@sandersn

@sandersn Nathan Shively-Sanders (sandersn) commented Oct 18, 2019 •

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Note: this is a superset of #34553

@sandersn

Copy link
Copy Markdown
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
Copy Markdown
Member

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

Nathan Shively-Sanders (sandersn) commented Oct 18, 2019 •

Copy link
Copy Markdown
Member Author

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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