1 /* eslint-disable mozilla/no-comparison-or-assignment-inside-ok */
4 postMessage({ type: "status", status: !!a, msg });
7 function is(a, b, msg) {
12 postMessage({ type: "finish" });
15 let url = new URL("http://example.com");
16 is(url.protocol, "http:", "http: expected");
18 url.protocol = "https:";
19 is(url.protocol, "https:", "http: -> https:");
21 url.protocol = "ftp:";
22 is(url.protocol, "ftp:", "https: -> ftp:");
24 url.protocol = "https:";
25 is(url.protocol, "https:", "ftp: -> https:");