summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/runonce.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/xdr/runonce.js')
-rw-r--r--js/src/jit-test/tests/xdr/runonce.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/xdr/runonce.js b/js/src/jit-test/tests/xdr/runonce.js
new file mode 100644
index 0000000000..b9e154ba0b
--- /dev/null
+++ b/js/src/jit-test/tests/xdr/runonce.js
@@ -0,0 +1,6 @@
+load(libdir + "asserts.js")
+
+// Incremental XDR doesn't have run-once script restrictions.
+evaluate(cacheEntry(""), { saveIncrementalBytecode: true });
+evaluate(cacheEntry(""), { saveIncrementalBytecode: true, isRunOnce: false });
+evaluate(cacheEntry(""), { saveIncrementalBytecode: true, isRunOnce: true });