Use Jasmine's arrayContains, instead of includes for better support
This commit is contained in:
@@ -2513,7 +2513,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|||||||
function filterJasmine(stackTrace) {
|
function filterJasmine(stackTrace) {
|
||||||
var result = [],
|
var result = [],
|
||||||
jasmineMarker = stackTrace.style === 'webkit' ? '<Jasmine>' : ' at <Jasmine>';
|
jasmineMarker = stackTrace.style === 'webkit' ? '<Jasmine>' : ' at <Jasmine>';
|
||||||
|
|
||||||
stackTrace.frames.forEach(function(frame) {
|
stackTrace.frames.forEach(function(frame) {
|
||||||
if (frame.file && frame.file !== jasmineFile) {
|
if (frame.file && frame.file !== jasmineFile) {
|
||||||
result.push(frame.raw);
|
result.push(frame.raw);
|
||||||
@@ -2521,7 +2521,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|||||||
result.push(jasmineMarker);
|
result.push(jasmineMarker);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2535,7 +2535,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|||||||
var empty = true;
|
var empty = true;
|
||||||
|
|
||||||
for (var prop in error) {
|
for (var prop in error) {
|
||||||
if (ignored.includes(prop)) {
|
if (j$.util.arrayContains(ignored, prop)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
result[prop] = error[prop];
|
result[prop] = error[prop];
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|||||||
function filterJasmine(stackTrace) {
|
function filterJasmine(stackTrace) {
|
||||||
var result = [],
|
var result = [],
|
||||||
jasmineMarker = stackTrace.style === 'webkit' ? '<Jasmine>' : ' at <Jasmine>';
|
jasmineMarker = stackTrace.style === 'webkit' ? '<Jasmine>' : ' at <Jasmine>';
|
||||||
|
|
||||||
stackTrace.frames.forEach(function(frame) {
|
stackTrace.frames.forEach(function(frame) {
|
||||||
if (frame.file && frame.file !== jasmineFile) {
|
if (frame.file && frame.file !== jasmineFile) {
|
||||||
result.push(frame.raw);
|
result.push(frame.raw);
|
||||||
@@ -52,7 +52,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|||||||
result.push(jasmineMarker);
|
result.push(jasmineMarker);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
|
|||||||
var empty = true;
|
var empty = true;
|
||||||
|
|
||||||
for (var prop in error) {
|
for (var prop in error) {
|
||||||
if (ignored.includes(prop)) {
|
if (j$.util.arrayContains(ignored, prop)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
result[prop] = error[prop];
|
result[prop] = error[prop];
|
||||||
|
|||||||
Reference in New Issue
Block a user