summaryrefslogtreecommitdiff
path: root/src/parser/parsers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parsers.h')
-rw-r--r--src/parser/parsers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser/parsers.h b/src/parser/parsers.h
index 44c4f959e..eb93fa717 100644
--- a/src/parser/parsers.h
+++ b/src/parser/parsers.h
@@ -1218,7 +1218,9 @@ template<typename Ctx> Result<> makeRefIsNull(Ctx& ctx, Index pos) {
}
template<typename Ctx> Result<> makeRefFunc(Ctx& ctx, Index pos) {
- return ctx.in.err("unimplemented instruction");
+ auto func = funcidx(ctx);
+ CHECK_ERR(func);
+ return ctx.makeRefFunc(pos, *func);
}
template<typename Ctx> Result<> makeRefEq(Ctx& ctx, Index pos) {