summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/WorkerDebugger_sharedWorker.js
blob: 5ad97d4c5081775e77991db6131efde20e259c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

self.onconnect = function (event) {
  event.ports[0].onmessage = function (event) {
    switch (event.data) {
    case "close":
      close();
      break;
    }
  };
};