summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-s-parser.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-05-07 18:52:57 -0700
committerGitHub <noreply@github.com>2019-05-07 18:52:57 -0700
commit14a286971d203e3caf6f49089fe6ddc16024861f (patch)
treee20a5659bfd95dacc3f2d779f759173da065d607 /src/wasm/wasm-s-parser.cpp
parentda716eb233f9fe7cefc61d9d1ce54f8b8c9d9126 (diff)
downloadbinaryen-14a286971d203e3caf6f49089fe6ddc16024861f.tar.gz
binaryen-14a286971d203e3caf6f49089fe6ddc16024861f.tar.bz2
binaryen-14a286971d203e3caf6f49089fe6ddc16024861f.zip
Add except_ref type (#2081)
This adds except_ref type, which is a part of the exception handling proposal.
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
-rw-r--r--src/wasm/wasm-s-parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp
index a869aa08a..4eaf54eff 100644
--- a/src/wasm/wasm-s-parser.cpp
+++ b/src/wasm/wasm-s-parser.cpp
@@ -790,6 +790,9 @@ Type SExpressionWasmBuilder::stringToType(const char* str,
return v128;
}
}
+ if (strncmp(str, "except_ref", 10) == 0 && (prefix || str[10] == 0)) {
+ return except_ref;
+ }
if (allowError) {
return none;
}