summaryrefslogtreecommitdiff
path: root/src/binary-reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r--src/binary-reader.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc
index 511f712c..bd2c039a 100644
--- a/src/binary-reader.cc
+++ b/src/binary-reader.cc
@@ -497,6 +497,13 @@ Result BinaryReader::ReadInitExpr(Index index, bool require_i32) {
CALLBACK(OnInitExprRefNull, index);
break;
+ case Opcode::RefFunc: {
+ Index func_index;
+ CHECK_RESULT(ReadIndex(&func_index, "init_expr ref.func index"));
+ CALLBACK(OnInitExprRefFunc, index, func_index);
+ break;
+ }
+
case Opcode::End:
return Result::Ok;