summaryrefslogtreecommitdiffstats
path: root/toolkit/components/url-classifier/tests/mochitest/cleanWorker.js
blob: 69a54a665cb7bdea5069cc58a2e25f419f8e6d18 (plain)
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");
};