Refactor slices for better compliance (#430)

This commit is contained in:
Max Graey
2019-02-27 22:51:07 +02:00
committed by Daniel Wirtz
parent aad263e670
commit cdf40578b6
7 changed files with 51 additions and 55 deletions

View File

@ -2988,20 +2988,20 @@
end
local.get $4
i32.sub
local.tee $2
local.tee $3
i32.const 0
i32.le_s
if
i32.const 256
return
end
local.get $2
local.get $3
call $~lib/internal/string/allocateUnsafe
local.tee $1
i32.const 0
local.get $0
local.get $4
local.get $2
local.get $3
call $~lib/internal/string/copyUnsafe
local.get $1
)