diff options
author | Yury Delendik <ydelendik@mozilla.com> | 2016-04-18 13:40:27 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-18 11:40:27 -0700 |
commit | bbc39d6e75e8b87170f7a3cd72dd34976687e7f6 (patch) | |
tree | 1f07850627217bf3321c8188aee74817b537a9a5 /test/unit.asm.js | |
parent | 4dfeb1c3a84b13188c22e158c5947c68964cddff (diff) | |
download | binaryen-bbc39d6e75e8b87170f7a3cd72dd34976687e7f6.tar.gz binaryen-bbc39d6e75e8b87170f7a3cd72dd34976687e7f6.tar.bz2 binaryen-bbc39d6e75e8b87170f7a3cd72dd34976687e7f6.zip |
Fixes typo in hex number parsing in asm2wasm. (#362)
Fixes #352
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r-- | test/unit.asm.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index cd432da5c..df731148a 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -52,6 +52,10 @@ function asm(global, env, buffer) { var x = 0; return !x; } + function hexLiterals() { + var i = 0; + i = 0x0 + 0x12ABCdef + 0xFEDcba90; + } function conversions() { var i = 0, d = 0.0, f = Math_fround(0); i = ~~d; |