summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-s-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
-rw-r--r--src/wasm/wasm-s-parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp
index 7a2d8a009..485b3251f 100644
--- a/src/wasm/wasm-s-parser.cpp
+++ b/src/wasm/wasm-s-parser.cpp
@@ -893,8 +893,8 @@ Type SExpressionWasmBuilder::stringToType(const char* str,
return v128;
}
}
- if (strncmp(str, "except_ref", 10) == 0 && (prefix || str[10] == 0)) {
- return except_ref;
+ if (strncmp(str, "exnref", 6) == 0 && (prefix || str[6] == 0)) {
+ return exnref;
}
if (allowError) {
return none;