1 export function checkFromESM(ok, is, finish) {
2 let worker = new ChromeWorker("esm_url_worker.js");
3 worker.onmessage = function (event) {
4 if (event.data.type == "finish") {
6 } else if (event.data.type == "url") {
7 URL.revokeObjectURL(event.data.url);
8 } else if (event.data.type == "status") {
9 ok(event.data.status, event.data.msg);
13 worker.onerror = function (event) {
14 is(event.target, worker);
15 ok(false, "Worker had an error: " + event.data);
20 worker.postMessage(0);