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