diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-17 16:27:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-17 16:27:58 -0800 |
commit | 05333ef74607f88cca53723a2aa8f731d0396a91 (patch) | |
tree | 83aa6947bb6402a82f06e24fd32c43edaaac1407 /src/js/post.js | |
parent | d48bd66a54633f94b7c499c490660280ac77c6e7 (diff) | |
download | binaryen-05333ef74607f88cca53723a2aa8f731d0396a91.tar.gz binaryen-05333ef74607f88cca53723a2aa8f731d0396a91.tar.bz2 binaryen-05333ef74607f88cca53723a2aa8f731d0396a91.zip |
do asm2wasm f64 to i32 conversions in js, so we do not fault, as asm.js expects
Diffstat (limited to 'src/js/post.js')
-rw-r--r-- | src/js/post.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/post.js b/src/js/post.js index 6406674ba..5c854b3df 100644 --- a/src/js/post.js +++ b/src/js/post.js @@ -32,6 +32,9 @@ "f64-rem": function(x, y) { return x % y; }, + "f64-to-int": function(x) { + return x | 0; + }, }, parent: Module // Module inside wasm-js.cpp refers to wasm-js.cpp; this allows access to the outside program. }; |