summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/module/bug1689499.js
blob: 2547c88d16068efacec5aed4796321f1b60ba957 (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) 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();