Skip to content

Commit 8ce0607

Browse files
rossbergbackes
authored andcommitted
Handle extern refs
1 parent 37f3cad commit 8ce0607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/script/js.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ let assert_return ress ts at =
436436
[ RefIsNull @@ at;
437437
Test (Value.I32 I32Op.Eqz) @@ at;
438438
BrIf (0l @@ at) @@ at ]
439-
| RefResult (RefPat {it = HostRef n; _}) ->
439+
| RefResult (RefPat {it = (HostRef n | Extern.ExternRef (HostRef n)); _}) ->
440440
[ Const (Value.I32 n @@ at) @@ at;
441441
Call (hostref_idx @@ at) @@ at;
442442
Call (eq_ref_idx @@ at) @@ at;

0 commit comments

Comments
 (0)