summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1593975.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1593975.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-1593975.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1593975.js b/js/src/jit-test/tests/gc/bug-1593975.js
new file mode 100644
index 0000000000..69ebcafb94
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1593975.js
@@ -0,0 +1,21 @@
+// |jit-test| error: ReferenceError
+function runtest(func) {
+ func();
+}
+const g1 = newGlobal({
+ newCompartment: true
+});
+function transplantMarking() {
+ const vals = {};
+ vals.map = new WeakMap();
+ enqueueMark(vals.map);
+ enqueueMark("yield");
+ enqueueMark("enter-weak-marking-mode");
+}
+if (this.enqueueMark) {
+ enqueueMark("enter-weak-marking-mode");
+ runtest(transplantMarking);
+ egc = 60;
+ gcslice(egc * 100);
+}
+x();