-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Conversation
9a3b03b
to
4151d39
Compare
if (DEBUG) { | ||
// Eagerly add INIT_FACTORY to avoid issues in DEBUG as a result of Object.seal(mixin) | ||
this[INIT_FACTORY] = null; | ||
} | ||
|
||
if (DEBUG) { |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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!
Thank you! |
ref emberjs/data#7435
ember.js/packages/@ember/-internals/metal/lib/mixin.ts
Line 589 in 725cdf2