Cast to bool by comparing to zero (#343)

This commit is contained in:
Daniel Wirtz
2018-11-23 15:20:52 +01:00
committed by GitHub
parent b723ff3e88
commit c30c62e383
38 changed files with 1072 additions and 1023 deletions

View File

@ -419,8 +419,8 @@
call $~lib/internal/arraybuffer/allocateUnsafe
set_local $3
get_local $2
i32.const 1
i32.and
i32.const 0
i32.ne
i32.eqz
if
get_local $3