diff options
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1871186.js')
-rw-r--r-- | js/src/jit-test/tests/gc/bug-1871186.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1871186.js b/js/src/jit-test/tests/gc/bug-1871186.js new file mode 100644 index 0000000000..fc4620fa65 --- /dev/null +++ b/js/src/jit-test/tests/gc/bug-1871186.js @@ -0,0 +1,10 @@ +// |jit-test| --blinterp-eager; skip-if: !('oomTest' in this) + +gc(); +function f(x) { + new Uint8Array(x); +} +f(0); +oomTest(function () { + f(2048); +}); |