summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/sharedWorker_console.js
blob: d78fca94c655783274a95d9a2497ece3b0d26579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/
 */
"use strict";

onconnect = function (evt) {
  console.profile("Hello profiling from a SharedWorker!");
  console.log("Hello world from a SharedWorker!");
  console.log("Here is a SAB", new SharedArrayBuffer(1024));
  evt.ports[0].postMessage("ok!");
};