mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
Bug 1288768 - Better error reporting for network errors in workers
This commit is contained in:
parent
12f3d0302c
commit
6509b677d3
8 changed files with 7 additions and 22 deletions
|
|
@ -16,7 +16,7 @@ function testSharedWorkerHelper(t, script) {
|
|||
try {
|
||||
var worker = new SharedWorker(script, '');
|
||||
worker.onerror = t.step_func_done(function(e) {
|
||||
assert_true(e instanceof ErrorEvent);
|
||||
assert_true(e instanceof Event);
|
||||
});
|
||||
} catch (e) {
|
||||
t.step_func_done(function(e) { assert_true(true); });
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ function testSharedWorkerHelper(t, script) {
|
|||
try {
|
||||
var worker = new SharedWorker(script, '');
|
||||
worker.onerror = t.step_func_done(function(e) {
|
||||
assert_true(e instanceof ErrorEvent);
|
||||
assert_true(e instanceof Event);
|
||||
});
|
||||
} catch (e) {
|
||||
t.step_func_done(function(e) { assert_true(true); });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue