summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2024-10-21 10:06:00 -0700
committerGitHub <noreply@github.com>2024-10-21 10:06:00 -0700
commitd5cb812408541c5cf5e3a59bfc947fb7d296f65a (patch)
treea58ca878442ec621758e0bb586eab8998e72f2fb
parentd6e97afe0eb1977a6fd198f5a221314a82c26c84 (diff)
downloadwabt-d5cb812408541c5cf5e3a59bfc947fb7d296f65a.tar.gz
wabt-d5cb812408541c5cf5e3a59bfc947fb7d296f65a.tar.bz2
wabt-d5cb812408541c5cf5e3a59bfc947fb7d296f65a.zip
[EH] Fix exnref's opcode (#2492)
`exnref`'s opcode is -0x17: https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/Exceptions.md#exnref
-rw-r--r--include/wabt/type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wabt/type.h b/include/wabt/type.h
index c270624c..d0e85d97 100644
--- a/include/wabt/type.h
+++ b/include/wabt/type.h
@@ -42,7 +42,7 @@ class Type {
V128 = -0x05, // 0x7b
I8 = -0x06, // 0x7a : packed-type only, used in gc and as v128 lane
I16 = -0x07, // 0x79 : packed-type only, used in gc and as v128 lane
- ExnRef = -0x0c, // 0x74
+ ExnRef = -0x17, // 0x69
FuncRef = -0x10, // 0x70
ExternRef = -0x11, // 0x6f
Reference = -0x15, // 0x6b