summaryrefslogtreecommitdiffstats
path: root/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js
blob: 6856483730a1d161c6d97698b664ffe9c016dfbf (plain)
1
2
3
4
5
6
7
8
9
10
onmessage = function() {
  try {
    importScripts("evilWorker.js");
  } catch(ex) {
    postMessage("success");
    return;
  }

  postMessage("failure");
};