Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / js / xpconnect / tests / unit / es6module_dynamic_import_missing.js
blobc64e212460d436a1fbd235390c83684f3af552f4
1 let resolve;
3 export const result = new Promise(r => { resolve = r; });
5 import("./es6module_dynamic_import_missing2.js").then(ns => {}, e => {
6   resolve(e);
7 });
9 export async function doImport() {
10   try {
11     await import("./es6module_dynamic_import_missing3.js");
12   } catch (e) {
13     return e;
14   }
16   return null;