Skip to content

Commit

Permalink
Handle extern refs
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg authored and backes committed Oct 29, 2024
1 parent 37f3cad commit 8ce0607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/script/js.ml
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ let assert_return ress ts at =
[ RefIsNull @@ at;
Test (Value.I32 I32Op.Eqz) @@ at;
BrIf (0l @@ at) @@ at ]
| RefResult (RefPat {it = HostRef n; _}) ->
| RefResult (RefPat {it = (HostRef n | Extern.ExternRef (HostRef n)); _}) ->
[ Const (Value.I32 n @@ at) @@ at;
Call (hostref_idx @@ at) @@ at;
Call (eq_ref_idx @@ at) @@ at;
Expand Down

0 comments on commit 8ce0607

Please sign in to comment.