tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

es6module_dynamic_import.js (521B)


      1 import { getCounter, setCounter } from "./es6module_dynamic_import_static.js";
      2 
      3 let resolve;
      4 
      5 export const result = new Promise(r => { resolve = r; });
      6 
      7 import("./es6module_dynamic_import2.js").then(ns => {
      8  resolve(ns);
      9 });
     10 
     11 export function doImport() {
     12  return import("./es6module_dynamic_import3.js");
     13 }
     14 
     15 export function callGetCounter() {
     16  return getCounter();
     17 }
     18 
     19 export function callSetCounter(v) {
     20  setCounter(v);
     21 }
     22 
     23 export function doImportStatic() {
     24  return import("./es6module_dynamic_import_static.js");
     25 }