diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/typedarray/oom-allocating-copying-same-buffer-contents.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/typedarray/oom-allocating-copying-same-buffer-contents.js b/js/src/jit-test/tests/typedarray/oom-allocating-copying-same-buffer-contents.js new file mode 100644 index 0000000000..ec33e4ef8e --- /dev/null +++ b/js/src/jit-test/tests/typedarray/oom-allocating-copying-same-buffer-contents.js @@ -0,0 +1,9 @@ +// |jit-test| skip-if: !('oomTest' in this) + +var buffer = new ArrayBuffer(16); +var i8 = new Int8Array(buffer); +var i16 = new Int16Array(buffer); + +oomTest(function() { + i8.set(i16); +}); |