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

[Bug]: set symbol on factory objects only in Prod for sealed objects #19470

Merged
merged 7 commits into from
Mar 21, 2021

Conversation

snewcomer
Copy link
Contributor

Comment on lines 579 to 578
if (DEBUG) {
// Eagerly add INIT_FACTORY to avoid issues in DEBUG as a result of Object.seal(mixin)
this[INIT_FACTORY] = null;
}

if (DEBUG) {
Copy link
Member

Choose a reason for hiding this comment

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

Sorry @snewcomer for the run around here, would you mind merging these two if (DEBUG) { statements? They are back to back, and it looks a bit odd...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I clearly don't have my thinking hat on today. Fixed!

@rwjblue rwjblue merged commit f5f916b into emberjs:master Mar 21, 2021
@rwjblue
Copy link
Member

rwjblue commented Mar 21, 2021

Thank you!

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.

3 participants