mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-29 06:31:59 +00:00
Investigate custom try-catch support
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
(memory $0 0)
|
||||
(table $0 2 funcref)
|
||||
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|0)
|
||||
(global $~lib/error (mut i32) (i32.const 0))
|
||||
(global $~lib/rt/stub/startOffset (mut i32) (i32.const 0))
|
||||
(global $~lib/rt/stub/offset (mut i32) (i32.const 0))
|
||||
(global $~lib/argc (mut i32) (i32.const 0))
|
||||
@ -142,6 +143,13 @@
|
||||
call $getter-call/C#get:x
|
||||
call_indirect (type $FUNCSIG$i)
|
||||
local.set $1
|
||||
global.get $~lib/error
|
||||
if
|
||||
i32.const 0
|
||||
return
|
||||
end
|
||||
local.get $1
|
||||
local.set $1
|
||||
local.get $0
|
||||
call $~lib/rt/stub/__release
|
||||
local.get $1
|
||||
|
Reference in New Issue
Block a user