Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / unit / import_shared_in_worker.js
blob170254fb2199a670f3e401177aaa28232e6bbf76
1 onmessage = event => {
2   let caught1 = false;
3   try {
4     ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs");
5   } catch (e) {
6     caught1 = true;
7   }
9   let caught2 = false;
10   try {
11     ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs", {
12       global: "shared",
13     });
14   } catch (e) {
15     caught2 = true;
16   }
18   let caught3 = false;
19   try {
20     ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs", {
21       global: "devtools",
22     });
23   } catch (e) {
24     caught3 = true;
25   }
27   postMessage({ caught1, caught2, caught3 });