From 14a286971d203e3caf6f49089fe6ddc16024861f Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Tue, 7 May 2019 18:52:57 -0700 Subject: Add except_ref type (#2081) This adds except_ref type, which is a part of the exception handling proposal. --- src/wasm/wasm-s-parser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wasm/wasm-s-parser.cpp') 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; } -- cgit v1.2.3