summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1388701.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/gc/bug-1388701.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1388701.js b/js/src/jit-test/tests/gc/bug-1388701.js
new file mode 100644
index 0000000000..8f0a6292c8
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1388701.js
@@ -0,0 +1,18 @@
+load(libdir + "asserts.js");
+
+// This is out of range
+assertErrorMessage(
+ () => gcparam('maxNurseryBytes', 0),
+ Error,
+ "Parameter value out of range");
+
+assertErrorMessage(
+ () => gcparam('maxNurseryBytes', 5),
+ Error,
+ "Parameter value out of range");
+
+// this is okay
+gcparam('maxNurseryBytes', 1024*1024);
+assertEq(gcparam('maxNurseryBytes'), 1024*1024);
+gc();
+