1 2 3 4 5 6 7 8 9 10 11 12
/* eslint-env worker */ onmessage = function() { try { importScripts("evilWorker.js"); } catch (ex) { postMessage("success"); return; } postMessage("failure"); };