summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/test/code_WorkerTargetActor.attachThread-worker.js
blob: ca12b86a59e0d006189ef5a541a045e250ac8a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"use strict";

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

  return [a, b, c];
}

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

postMessage("load");