summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/entry.js
blob: d397a966bae2e2a9359da5332f45ad91abe19eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const times2 = require("./times2");
const { output } = require("./output");
const opts = require("./opts");

output(times2(1));
output(times2(2));

if(opts.extra) {
  output(times2(3));
}

window.keepMeAlive = function() {
  // This function exists to make sure this script is never garbage
  // collected. It is also callable from tests.
  return times2(4);
}