diff options
Diffstat (limited to 'js/src/jit-test/tests/debug/gc-06.js')
-rw-r--r-- | js/src/jit-test/tests/debug/gc-06.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/gc-06.js b/js/src/jit-test/tests/debug/gc-06.js new file mode 100644 index 000000000..69da384e4 --- /dev/null +++ b/js/src/jit-test/tests/debug/gc-06.js @@ -0,0 +1,6 @@ +// Debugger objects do not keep debuggee globals live. +var dbg = new Debugger; +for (var i = 0; i < 10; i++) + dbg.addDebuggee(newGlobal()); +gc(); +assertEq(dbg.getDebuggees().length < 10, true); |