blob: 859cd6f64f5403b3e1fbe6eaffa38d16ac4e73cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// |reftest| skip-if(!xulRuntime.shell) module async -- needs drainJobQueue
async function test() {
try {
await import("./bug1689499-a.js");
throw new Error("import should have failed");
} catch (exc) {
assertEq(exc.message, "FAIL");
}
try {
await import("./bug1689499-x.js");
throw new Error("import should have failed");
} catch (exc) {
assertEq(exc.message, "FAIL");
}
if (typeof reportCompare === "function")
reportCompare(0, 0);
}
test();
drainJobQueue();
|