diff options
Diffstat (limited to '')
-rw-r--r-- | js/xpconnect/tests/unit/non_shared_nest_import_non_shared_3.mjs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/xpconnect/tests/unit/non_shared_nest_import_non_shared_3.mjs b/js/xpconnect/tests/unit/non_shared_nest_import_non_shared_3.mjs new file mode 100644 index 0000000000..f5a0731fa8 --- /dev/null +++ b/js/xpconnect/tests/unit/non_shared_nest_import_non_shared_3.mjs @@ -0,0 +1,14 @@ +export function func3() { + const { func3 } = ChromeUtils.importESModule("resource://test/non_shared_nest_import_non_shared_target_3.mjs", { + global: "current", + }); + + const result = Cu.evalInSandbox(` + const { func3 } = ChromeUtils.importESModule("resource://test/non_shared_nest_import_non_shared_target_3.mjs", { + global: "current", + }); + func3(); +`, globalThis["sb"]); + + return func3() + result; +} |