mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
4f9d14de94
--HG-- extra : transplant_source : %92%D8Q%B7gP4%2A%D3%B7%B3%1E%E6%18T%A7%08%F6%D9%9A
14 lines
411 B
JavaScript
14 lines
411 B
JavaScript
// Used to test XHR in the worker.
|
|
onconnect = function(e) {
|
|
let port = e.ports[0];
|
|
let req;
|
|
try {
|
|
importScripts("relative_import.js");
|
|
port.postMessage({topic: "done", result: "ok"});
|
|
} catch(e) {
|
|
port.postMessage({topic: "done", result: "FAILED to importScripts, " + e.toString() });
|
|
return;
|
|
}
|
|
port.postMessage({topic: "done", result: "FAILED to importScripts, no exception" });
|
|
}
|