summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/promise/drain-job-queue-after-quit-called.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/promise/drain-job-queue-after-quit-called.js')
-rw-r--r--js/src/jit-test/tests/promise/drain-job-queue-after-quit-called.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/promise/drain-job-queue-after-quit-called.js b/js/src/jit-test/tests/promise/drain-job-queue-after-quit-called.js
new file mode 100644
index 0000000000..ceb067e291
--- /dev/null
+++ b/js/src/jit-test/tests/promise/drain-job-queue-after-quit-called.js
@@ -0,0 +1,15 @@
+function d() {
+ quit();
+}
+
+function bt() {
+ getBacktrace({thisprops: true});
+}
+
+d.toString = bt.toString = drainJobQueue.toString = function () {
+ if (this === bt)
+ return '';
+ this();
+}
+
+bt();