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 0000000000..16aaf12bd0 --- /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({newCompartment: true})); +gc(); +assertEq(dbg.getDebuggees().length < 10, true); |