mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
If an exception is thrown, make sure finish() still gets called as needed. r=sayrer
This commit is contained in:
parent
ea0e843532
commit
dac64554a9
@ -399,6 +399,13 @@ var oldOnError = window.onerror;
|
||||
window.onerror = function (ev) {
|
||||
is(0, 1, "Error thrown during test: " + ev);
|
||||
if (oldOnError) {
|
||||
oldOnError(ev);
|
||||
try {
|
||||
oldOnError(ev);
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
if (SimpleTest._stopOnLoad == false) {
|
||||
// Need to finish() manually here
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user