Removed IE/PhantomJS support code
This commit is contained in:
@@ -676,20 +676,10 @@ getJasmineRequireObj().util = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
util.errorWithStack = function errorWithStack() {
|
util.errorWithStack = function errorWithStack() {
|
||||||
// Don't throw and catch if we don't have to, because it makes it harder
|
// Don't throw and catch. That makes it harder for users to debug their
|
||||||
// for users to debug their code with exception breakpoints.
|
// code with exception breakpoints, and it's unnecessary since all
|
||||||
var error = new Error();
|
// supported environments populate new Error().stack
|
||||||
|
return new Error();
|
||||||
if (error.stack) {
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
// But some browsers (e.g. Phantom) only provide a stack trace if we throw.
|
|
||||||
try {
|
|
||||||
throw new Error();
|
|
||||||
} catch (e) {
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function callerFile() {
|
function callerFile() {
|
||||||
|
|||||||
@@ -90,20 +90,10 @@ getJasmineRequireObj().util = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
util.errorWithStack = function errorWithStack() {
|
util.errorWithStack = function errorWithStack() {
|
||||||
// Don't throw and catch if we don't have to, because it makes it harder
|
// Don't throw and catch. That makes it harder for users to debug their
|
||||||
// for users to debug their code with exception breakpoints.
|
// code with exception breakpoints, and it's unnecessary since all
|
||||||
var error = new Error();
|
// supported environments populate new Error().stack
|
||||||
|
return new Error();
|
||||||
if (error.stack) {
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
// But some browsers (e.g. Phantom) only provide a stack trace if we throw.
|
|
||||||
try {
|
|
||||||
throw new Error();
|
|
||||||
} catch (e) {
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function callerFile() {
|
function callerFile() {
|
||||||
|
|||||||
Reference in New Issue
Block a user