summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/properly-remove-timeout-root-before-shutdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/properly-remove-timeout-root-before-shutdown.js')
-rw-r--r--js/src/jit-test/tests/basic/properly-remove-timeout-root-before-shutdown.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/properly-remove-timeout-root-before-shutdown.js b/js/src/jit-test/tests/basic/properly-remove-timeout-root-before-shutdown.js
new file mode 100644
index 000000000..99eae1892
--- /dev/null
+++ b/js/src/jit-test/tests/basic/properly-remove-timeout-root-before-shutdown.js
@@ -0,0 +1,5 @@
+// Bug 857050: Remove the timeout function root before shutting down.
+function timeoutfunc() {}
+timeout(1, timeoutfunc);
+var g = newGlobal();
+var dbg = Debugger(g);