blob: 98a6af75d07f00f8cc4b55c7a5dd42d5f7dfd14a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| module
let result = null;
let error = null;
let promise = import("nonexistent.js");
promise.then((ns) => {
result = ns;
}).catch((e) => {
error = e;
});
drainJobQueue();
assertEq(result, null);
assertEq(error instanceof Error, true);
|