diff options
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/doc-gc-breakpoint-positions.html')
-rw-r--r-- | devtools/client/debugger/test/mochitest/examples/doc-gc-breakpoint-positions.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/doc-gc-breakpoint-positions.html b/devtools/client/debugger/test/mochitest/examples/doc-gc-breakpoint-positions.html new file mode 100644 index 0000000000..aca36fc369 --- /dev/null +++ b/devtools/client/debugger/test/mochitest/examples/doc-gc-breakpoint-positions.html @@ -0,0 +1,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> |