3 export function increment() {
7 import { object } from "resource://test/es6module_devtoolsLoader.js";
8 export const importedObject = object;
10 const importDevTools = ChromeUtils.importESModule("resource://test/es6module_devtoolsLoader.js", { global: "devtools" });
11 export const importESModuleDevTools = importDevTools.object;
13 const importShared = ChromeUtils.importESModule("resource://test/es6module_devtoolsLoader.js", { global: "shared" });
14 export const importESModuleShared = importShared.object;
16 const importCurrent = ChromeUtils.importESModule("resource://test/es6module_devtoolsLoader.js", { global: "current" });
17 export const importESModuleCurrent = importCurrent.object;
19 const importContextual = ChromeUtils.importESModule("resource://test/es6module_devtoolsLoader.js", { global: "contextual" });
20 export const importESModuleContextual = importContextual.object;
24 ChromeUtils.importESModule("resource://test/es6module_devtoolsLoader.js");
28 export const importESModuleNoOptionFailed1 = caught;
32 ChromeUtils.importESModule("resource://test/es6module_devtoolsLoader.js", {});
36 export const importESModuleNoOptionFailed2 = caught;
38 const lazyDevTools = {};
39 ChromeUtils.defineESModuleGetters(lazyDevTools, {
40 object: "resource://test/es6module_devtoolsLoader.js",
41 }, { global: "devtools" });
43 export function importLazyDevTools() {
44 return lazyDevTools.object;
47 const lazyShared = {};
48 ChromeUtils.defineESModuleGetters(lazyShared, {
49 object: "resource://test/es6module_devtoolsLoader.js",
50 }, { global: "shared" });
52 export function importLazyShared() {
53 return lazyShared.object;
56 const lazyCurrent = {};
57 ChromeUtils.defineESModuleGetters(lazyCurrent, {
58 object: "resource://test/es6module_devtoolsLoader.js",
59 }, { global: "current" });
61 export function importLazyCurrent() {
62 return lazyCurrent.object;
65 const lazyContextual = {};
66 ChromeUtils.defineESModuleGetters(lazyContextual, {
67 object: "resource://test/es6module_devtoolsLoader.js",
68 }, { global: "contextual" });
70 export function importLazyContextual() {
71 return lazyContextual.object;
77 ChromeUtils.defineESModuleGetters({}, {
78 object: "resource://test/es6module_devtoolsLoader.js",
83 export const importLazyNoOptionFailed1 = caught;
88 ChromeUtils.defineESModuleGetters({}, {
89 object: "resource://test/es6module_devtoolsLoader.js",
94 export const importLazyNoOptionFailed2 = caught;