summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/bug1063538.sjs
blob: 7e4ba3399814fc293b9575ed8716bac516f440dc (plain)
1
2
3
4
5
6
7
8
9
10
11
const { setTimeout } = ChromeUtils.importESModule(
  "resource://gre/modules/Timer.sys.mjs"
);

function handleRequest(request, response) {
  response.processAsync();
  response.write("Hello");
  setTimeout(function () {
    response.finish();
  }, 100000); // wait 100 seconds.
}