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