[BUGFIX beta] Ensure Mixin.prototype.toString is defined. #12636
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mixin.prototype
is sealed after its initial definition, butMixin.prototype.toString
is assigned later inember-runtime/namespace
. This causes issues whenember-template-compiler.js
is loaded before the rest of Ember (because theMixin.prototype
is sealed). Unfortunately, the debug functions (forObject.seal
) does not work in theember-metal
package at this time.This fix is a temporary fix ensures that the slot for
toString
exists onMixin.prototype
to allow the loading ofember-template-compiler.js
to be before or afterember.debug.js
. The more permanent fix is to ensure thatdebugSeal
works in ember-metal properly.Fixes #12623.