summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/doc-gc-breakpoint-positions.html
blob: aca36fc369bdf70eac81a76b7b97a15d73b06b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div>
  Here
  is
  some
  stuff
  so
  that
  the
  source's
  start
  line
  is
  not
  one
</div>
<script>
// Make sure the source stays alive.
function foo() {
}
// After the outer script has been GC'ed, breakpoints can't be set here.
var x = null;
setTimeout(() => SpecialPowers.gc(), 0);
</script>