summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/contextual_worker.js
blob: a6344daf1e55d2340f8a03812813e76e4d81ad8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
onmessage = event => {
  const ns1 = ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs", {
    global: "current",
  });

  const ns2 = ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs", {
    global: "contextual",
  });

  const equal1 = ns1 == ns2;
  const equal2 = ns1.obj == ns2.obj;

  postMessage({ equal1, equal2 });
};