summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/sharedWorker_console.js
blob: 932235eb71ff21181f5189d426ec9737bdb65296 (plain)
1
2
3
4
5
6
7
8
9
10
11
/**
 * 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!");
  evt.ports[0].postMessage('ok!');
}