Skip to content

Commit

Permalink
Merge pull request #15702 from bekzod/fix-assert
Browse files Browse the repository at this point in the history
correctly escape values in `core_object` assertions
  • Loading branch information
rwjblue authored Oct 5, 2017
2 parents 5c6333c + f7015c6 commit 87291c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-runtime/lib/system/core_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ CoreObject.PrototypeMixin = Mixin.create({
return;
}

assert(`You cannot set \`${this}.isDestroyed\` directly, please use `.destroy()`.`, false);
assert(`You cannot set \`${this}.isDestroyed\` directly, please use \`.destroy()\`.`, false);
}
}),

Expand All @@ -439,7 +439,7 @@ CoreObject.PrototypeMixin = Mixin.create({
return;
}

assert(`You cannot set \`${this}.isDestroying\` directly, please use `.destroy()`.`, false);
assert(`You cannot set \`${this}.isDestroying\` directly, please use \`.destroy()\`.`, false);
}
}),

Expand Down

0 comments on commit 87291c1

Please sign in to comment.