1
0
mirror of https://github.com/golang/go synced 2024-11-11 21:20:21 -07:00
go/misc/wasm
Richard Musiol 73b5951391 misc/wasm: fix passing large negative integers from JS to Go
This commit addresses a FIXME left in the code of wasm_exec.js to
properly get the upper 32 bit of a JS number to be stored as an
64-bit integer. A bitshift operation is not possible, because in
JavaScript bitshift operations only operate on the lower 32 bits.

Change-Id: I8f627fd604e592682d9d322942a4852db64a7f66
Reviewed-on: https://go-review.googlesource.com/113076
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-05-15 14:15:44 +00:00
..
go_js_wasm_exec misc/wasm: add scripts for running WebAssembly binaries 2018-03-30 05:13:31 +00:00
wasm_exec.html misc/wasm: pollute global JS namespace less 2018-05-15 14:15:07 +00:00
wasm_exec.js misc/wasm: fix passing large negative integers from JS to Go 2018-05-15 14:15:44 +00:00