summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/sharedWorker_lifetime.js
blob: 3d9a837bba0e5f360bd27f9cade16aae538b0696 (plain)
1
2
3
4
5
onconnect = function(e) {
  setTimeout(function() {
    e.ports[0].postMessage("Still alive!");
  }, 500);
}