summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/code_WorkerActor.attachThread-worker.js
blob: 881eab0b8ef157dddc8f41585523a557e016fd6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";

function f() {
  var a = 1;
  var b = 2;
  var c = 3;
}

self.onmessage = function (event) {
  if (event.data == "ping") {
    f();
    postMessage("pong");
  }
};

postMessage("load");