mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +00:00
misc/wasm: avoid implicit boolean to number conversion
Fixes #36561 Change-Id: I20cbf95ef4fd7c5c255a93ed3ec3e027a0ce2bc2 Reviewed-on: https://go-review.googlesource.com/c/go/+/214944 Reviewed-by: Richard Musiol <neelance@gmail.com>
This commit is contained in:
parent
583419e5d2
commit
46f9aea801
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@
|
|||
|
||||
// func valueInstanceOf(v ref, t ref) bool
|
||||
"syscall/js.valueInstanceOf": (sp) => {
|
||||
this.mem.setUint8(sp + 24, loadValue(sp + 8) instanceof loadValue(sp + 16));
|
||||
this.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);
|
||||
},
|
||||
|
||||
// func copyBytesToGo(dst []byte, src ref) (int, bool)
|
||||
|
|
Loading…
Reference in a new issue