Don't leak global error handlers between Jasmine's own tests
This commit is contained in:
@@ -1188,6 +1188,12 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
throw new Error(message);
|
||||
}
|
||||
};
|
||||
|
||||
this.cleanup_ = function() {
|
||||
if (globalErrors) {
|
||||
globalErrors.uninstall();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return Env;
|
||||
|
||||
Reference in New Issue
Block a user