Use Jasmine's arrayContains, instead of includes for better support

This commit is contained in:
Gregg Van Hove
2018-02-26 17:57:37 -08:00
parent fdecf02472
commit 63cc7cafc8
2 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
function filterJasmine(stackTrace) {
var result = [],
jasmineMarker = stackTrace.style === 'webkit' ? '<Jasmine>' : ' at <Jasmine>';
stackTrace.frames.forEach(function(frame) {
if (frame.file && frame.file !== jasmineFile) {
result.push(frame.raw);
@@ -52,7 +52,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
result.push(jasmineMarker);
}
});
return result;
}
@@ -66,7 +66,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
var empty = true;
for (var prop in error) {
if (ignored.includes(prop)) {
if (j$.util.arrayContains(ignored, prop)) {
continue;
}
result[prop] = error[prop];