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