summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 9937bb897..b4adcdcb4 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -379,6 +379,8 @@ enum EncodedType {
v128 = -0x5, // 0x7b
// elem_type
AnyFunc = -0x10, // 0x70
+ // reference type
+ except_ref = -0x18, // 0x68
// func_type form
Func = -0x20, // 0x60
// block_type
@@ -885,6 +887,9 @@ inline S32LEB binaryType(Type type) {
case v128:
ret = BinaryConsts::EncodedType::v128;
break;
+ case except_ref:
+ ret = BinaryConsts::EncodedType::except_ref;
+ break;
case unreachable:
WASM_UNREACHABLE();
}