summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js')
-rw-r--r--js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js b/js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js
new file mode 100644
index 000000000..272337823
--- /dev/null
+++ b/js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js
@@ -0,0 +1,11 @@
+if (typeof oomAfterAllocations !== 'function' || typeof evaluate !== 'function')
+ quit();
+
+oomAfterAllocations(10, 2);
+evaluate(`function mod(stdlib, ffi, heap) {
+ "use asm";
+ function f3(k) {
+ k = k | 0;
+ }
+ function g3(k) {}
+}`);