Skip to content

Commit

Permalink
[BUGFIX beta] Ensure Mixin.prototype.toString does not return constru…
Browse files Browse the repository at this point in the history
…ctor code
  • Loading branch information
meslater1030 authored and mmun committed Mar 8, 2018
1 parent e0d4b3f commit 04b04f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ember-metal/lib/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ if (ENV._ENABLE_BINDING_SUPPORT) {
}

let MixinPrototype = Mixin.prototype;
MixinPrototype.toString = Object.toString;
MixinPrototype.toString = function Mixin_toString() {
return '(unknown mixin)';
};

if (DEBUG) {
Object.seal(MixinPrototype);
Expand Down

0 comments on commit 04b04f3

Please sign in to comment.