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.js10
1 files changed, 10 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 0000000000..2d80e98d3c
--- /dev/null
+++ b/js/src/jit-test/tests/asm.js/oom-helper-thread-plus-validation-error.js
@@ -0,0 +1,10 @@
+// |jit-test| skip-if: !('oomAfterAllocations' in this)
+
+oomAfterAllocations(10, 2);
+evaluate(`function mod(stdlib, ffi, heap) {
+ "use asm";
+ function f3(k) {
+ k = k | 0;
+ }
+ function g3(k) {}
+}`);