blob: 5092c14f4ed5104f9a1864551450b2c276be0d38 [file] [log] [blame]
function triggerImportScripts() {
importScripts("worker-import-1.js");
}
function triggerEvalScript() {
eval("function workerEval() { }\n//# sourceURL=worker-eval.js");
}
onmessage = function(event) {
if (event.data === "triggerImportScripts")
triggerImportScripts();
else if (event.data === "triggerEvalScript")
triggerEvalScript();
}