diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-24 16:40:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-24 16:40:52 -0700 |
commit | 061e6255ca15b31d002f22c2ca49eb1197d23f46 (patch) | |
tree | e2051b0912360ad8a98705ee1057dbf851623f4a | |
parent | aa80b0c6bd30e0cd6a80611548c2a51a3fe6b7ea (diff) |
improve check for Float64Array; fixes #1651
-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 acff665f..977ce004 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -717,7 +717,7 @@ var FAST_MEMORY = Module['FAST_MEMORY'] || {{{ FAST_MEMORY }}}; // Initialize the runtime's memory #if USE_TYPED_ARRAYS // check for full engine support (use string 'subarray' to avoid closure compiler confusion) -assert(!!Int32Array && !!Float64Array && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']), +assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']), 'Cannot fallback to non-typed array case: Code is too specialized'); #if USE_TYPED_ARRAYS == 1 |