发现ios小游戏上,这段for循环wasm代码会死循环(必现),在其他平台上都正常。所以像字符串拼接等但凡涉及for循环的都会出bug。ios版WXWebAssembly的loop指令有bug,希望尽快排查修复。
i32.const 0
loop (param i32) ;; label = @1
local.set 2
local.get 2
i32.const 10
i32.lt_s
if ;; label = @2
call 16
drop
local.get 2
i32.const 1
i32.add
local.tee 3
br 1 (;@1;)
end
i32.const 0
drop
end
;; 对应的伪代码
;; for q = 0; q < 10; q = q + 1 {
;; ffe()
;; }