Skip to content

Commit

Permalink
[BUGFIX release] Fixes #15154
Browse files Browse the repository at this point in the history
Usage of `Array#includes` is not supported by IE11.

(cherry picked from commit 6d3b250)
  • Loading branch information
Krueger, Marko authored and rwjblue committed Apr 27, 2017
1 parent 5bf3594 commit 3a1628c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-metal/lib/error_handler.js
Expand Up @@ -6,7 +6,7 @@ let getStack = error => {
let stack = error.stack;
let message = error.message;

if (stack && !stack.includes(message)) {
if (stack && stack.indexOf(message) === -1) {
stack = `${message}\n${stack}`;
}

Expand Down

0 comments on commit 3a1628c

Please sign in to comment.