diff options
Diffstat (limited to 'src/interp/binary-reader-interp.cc')
-rw-r--r-- | src/interp/binary-reader-interp.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interp/binary-reader-interp.cc b/src/interp/binary-reader-interp.cc index ce45dddf..69539da8 100644 --- a/src/interp/binary-reader-interp.cc +++ b/src/interp/binary-reader-interp.cc @@ -245,6 +245,7 @@ class BinaryReaderInterp : public BinaryReaderNop { Index global_index) override; wabt::Result OnInitExprI32ConstExpr(Index index, uint32_t value) override; wabt::Result OnInitExprI64ConstExpr(Index index, uint64_t value) override; + wabt::Result OnInitExprRefNull(Index index) override; private: Label* GetLabel(Index depth); @@ -1016,6 +1017,11 @@ wabt::Result BinaryReaderInterp::OnInitExprI64ConstExpr(Index index, return wabt::Result::Ok; } +wabt::Result BinaryReaderInterp::OnInitExprRefNull(Index index) { + PrintError("ref.null global init expressions unimplemented by interpreter"); + return wabt::Result::Error; +} + wabt::Result BinaryReaderInterp::OnExport(Index index, ExternalKind kind, Index item_index, |