Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / unit / es6module_dynamic_import.js
blob0b73a3daf44ee36325e0b6089382cbe70f4d4981
1 import { getCounter, setCounter } from "./es6module_dynamic_import_static.js";
3 let resolve;
5 export const result = new Promise(r => { resolve = r; });
7 import("./es6module_dynamic_import2.js").then(ns => {
8   resolve(ns);
9 });
11 export function doImport() {
12   return import("./es6module_dynamic_import3.js");
15 export function callGetCounter() {
16   return getCounter();
19 export function callSetCounter(v) {
20   setCounter(v);
23 export function doImportStatic() {
24   return import("./es6module_dynamic_import_static.js");