diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 12:19:06 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 12:19:06 -0700 |
commit | 418ebad61c099737b4fd56f3030b1fd1e0e89a2b (patch) | |
tree | c550367180648658d38bdd5649066600bf093826 /test/unit.asm.js | |
parent | dbb84c00b4bf99340fab321d7e6a8105ab56d643 (diff) | |
download | binaryen-418ebad61c099737b4fd56f3030b1fd1e0e89a2b.tar.gz binaryen-418ebad61c099737b4fd56f3030b1fd1e0e89a2b.tar.bz2 binaryen-418ebad61c099737b4fd56f3030b1fd1e0e89a2b.zip |
fix type detection of globals
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r-- | test/unit.asm.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index c8d52f3e0..922923ea3 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -1,11 +1,19 @@ function () { "use asm"; + + var t = global.NaN, u = global.Infinity; + function big_negative() { var temp = 0.0; temp = +-2147483648; temp = -2147483648.0; temp = -21474836480.0; } + function importedDoubles() { + var temp = 0.0; + temp = t + u + (-u) + (-t); + } + return { big_negative: big_negative }; } |