summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/sjs_random-javascript.sjs
blob: 3e0ea8e53383c46b8ba0d67e812ea1c1a9cfea48 (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/ */

function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 200, "OK");
  response.setHeader("Content-Type", "application/javascript; charset=utf-8", false);
  response.write([
    "window.setInterval(function bacon() {",
    "  var x = '" + Math.random() + "';",
    "}, 0);"].join("\n"));
}