Source code

Revision control

Copy as Markdown

Other Tools

// Even with --ion-eager, this needs to be run twice before it executes the
// ion-compiled version.
for (let i = 0; i < 2; i++) {
let result = null;
let error = null;
let promise = import("../../modules/module1.js");
promise.then((ns) => {
result = ns;
}).catch((e) => {
error = e;
});
drainJobQueue();
assertEq(error, null);
assertEq(result.a, 1);
}