diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-07 16:47:37 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-07 16:47:37 -0800 |
commit | 54947418cdb673a86c21d4a441b687f3a2adeee9 (patch) | |
tree | d0ea26aba4799e988ec608b374c956bdb64815c9 /src | |
parent | 2a394c21d674ace775882d5f351fc6297740bde9 (diff) |
commented out safe heap code for infinities and nans
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 9ee90728..fbc0f266 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -81,6 +81,8 @@ function SAFE_HEAP_STORE(dest, value, type, ignore) { if (!ignore && !value && (value === null || value === undefined)) { throw('Warning: Writing an invalid value of ' + JSON.stringify(value) + ' at ' + dest + ' :: ' + new Error().stack + '\n'); } + //if (!ignore && (value === Infinity || value === -Infinity || isNaN(value))) throw [value, typeof value, new Error().stack]; + SAFE_HEAP_ACCESS(dest, type, true, ignore); if (dest in HEAP_WATCHED) { Module.print((new Error()).stack); |