diff options
Diffstat (limited to 'js/src/jit-test/tests/ion/typedarray-static-store.js')
-rw-r--r-- | js/src/jit-test/tests/ion/typedarray-static-store.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/typedarray-static-store.js b/js/src/jit-test/tests/ion/typedarray-static-store.js new file mode 100644 index 000000000..98da22828 --- /dev/null +++ b/js/src/jit-test/tests/ion/typedarray-static-store.js @@ -0,0 +1,12 @@ +var buffer = new ArrayBuffer(512 * 1024); +var ta = new Uint8Array(buffer); + +function store() { ta[0x1234] = 42; } + +store(); +store(); +store(); + +detachArrayBuffer(buffer); + +store(); |