Skip to content

Bind @class in the right place -- bindWorker not bindChildrenWorker #34575

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
Oct 18, 2019

Conversation

sandersn
Copy link
Member

Also add an assert to make future mismatches fail in an obvious place instead of in a while loop.

I believe the reason that this never failed before was that all of the tests had either this.prop assignments or F.prototype = { ... assignments, both of which also set the SymbolFlags.Class flag.

Fixes #34346

Also add an assert to make future mismatches fail in an obvious place
instead of in a while loop.
@sandersn
Copy link
Member Author

@rbuckton @andrewbranch @orta This needs to be fixed in 3.7 but we're slipping the RC snap until end of Friday or Monday some time, so this doesn't need to be reviewed in the next 15 minutes -- just the next day or so.

@sandersn
Copy link
Member Author

Removing the @class binding code entirely makes one more test fail. That must mean that the call to bindJSDocClassTag in bindWorker is called [strictly?] more often than in bindChildrenWorker.

Copy link
Contributor

@orta orta left a comment

Choose a reason for hiding this comment

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

Cool, this makes sense to me 👍

@sandersn sandersn merged commit cdf1ab2 into master Oct 18, 2019
@sandersn sandersn deleted the correctly-bind-class-tag branch October 18, 2019 21:13
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.

Crash when calling a JS function tagged @constructor but no properties
2 participants