diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-06-20 18:57:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-06-20 18:57:31 -0700 |
commit | 53c9f1b3b01ae1f5bbea2afeb4627b660f159f7c (patch) | |
tree | 96610bf95fd512b65521280fbf5975cf04748295 /src/preamble.js | |
parent | f83a7e74298a283425248adf1dc8a0b9c07beaee (diff) |
fix typed array detection
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index ac3ec56f..e7cbcce6 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -413,7 +413,7 @@ var TOTAL_MEMORY = 50*1024*1024; #if USE_TYPED_ARRAYS HAS_TYPED_ARRAYS = false; try { - HAS_TYPED_ARRAYS = !!Int32Array && !!Float64Array && !!(new Int32Array()['subarray']); // check for full engine support (use string 'subarray' to avoid closure compiler confusion) + HAS_TYPED_ARRAYS = !!Int32Array && !!Float64Array && !!(new Int32Array(1)['subarray']); // check for full engine support (use string 'subarray' to avoid closure compiler confusion) } catch(e) {} if (HAS_TYPED_ARRAYS) { |