3 // This is a test script similar to those used by ExtensionAPIs.
4 // https://searchfox.org/mozilla-central/source/toolkit/components/extensions/parent
8 // This should work across ESR 102 and Firefox 103+.
9 if (ChromeUtils.importESModule) {
10 module3 = ChromeUtils.importESModule("resource://test/esmified-3.sys.mjs");
11 module4 = ChromeUtils.importESModule("resource://test/esmified-4.sys.mjs");
13 module3 = ChromeUtils.import("resource://test/esmified-3.jsm");
14 module4 = ChromeUtils.import("resource://test/esmified-4.jsm");
17 injected3.obj.value += 3;
18 module3.obj.value += 3;
19 module4.obj.value += 4;
22 injected3: injected3.obj.value,
23 module3: module3.obj.value,
24 sameInstance3: injected3 === module3,
25 module4: module4.obj.value,