blob: bc92fe26a69058d62de70c09821d8dab7cf75f7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
onmessage = event => {
let caught1 = false;
try {
ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs");
} catch (e) {
caught1 = true;
}
let caught2 = false;
try {
ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs", {
global: "shared",
});
} catch (e) {
caught2 = true;
}
let caught3 = false;
try {
ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs", {
global: "devtools",
});
} catch (e) {
caught3 = true;
}
let caught4 = false;
try {
ChromeUtils.importESModule("resource://test/esmified-1.sys.mjs", {
loadInDevToolsLoader: true,
});
} catch (e) {
caught4 = true;
}
postMessage({ caught1, caught2, caught3, caught4 });
};
|