1
0
mirror of https://github.com/golang/go synced 2024-11-06 15:26:13 -07:00
go/misc/wasm
Richard Musiol e97ef4127f syscall/js: add Value.Type
This commits adds Value.Type(), which returns the JavaScript type of
a Value.

The implementation uses two previously unused bits of the NaN payload
to encode type information.

Change-Id: I568609569983791d50d35b8d80c44f3472203511
Reviewed-on: https://go-review.googlesource.com/122375
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-09 22:51:14 +00:00
..
go_js_wasm_exec
wasm_exec.html misc/wasm: make wasm_exec.js more flexible 2018-05-18 18:16:50 +00:00
wasm_exec.js syscall/js: add Value.Type 2018-07-09 22:51:14 +00:00