summaryrefslogtreecommitdiff
path: root/src/wast-parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wast-parser.cc')
-rw-r--r--src/wast-parser.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc
index 955b6a3d..22dd5322 100644
--- a/src/wast-parser.cc
+++ b/src/wast-parser.cc
@@ -2591,10 +2591,6 @@ Result WastParser::ParseBlockInstr(std::unique_ptr<Expr>* out_expr) {
if (IsCatch(Peek())) {
CHECK_RESULT(ParseCatchInstrList(&expr->catches));
expr->kind = TryKind::Catch;
- } else if (PeekMatch(TokenType::Unwind)) {
- Consume();
- CHECK_RESULT(ParseInstrList(&expr->unwind));
- expr->kind = TryKind::Unwind;
} else if (PeekMatch(TokenType::Delegate)) {
Consume();
Var var;
@@ -2602,7 +2598,7 @@ Result WastParser::ParseBlockInstr(std::unique_ptr<Expr>* out_expr) {
expr->delegate_target = var;
expr->kind = TryKind::Delegate;
} else {
- return ErrorExpected({"catch", "catch_all", "unwind", "delegate"});
+ return ErrorExpected({"catch", "catch_all", "delegate"});
}
CHECK_RESULT(ErrorIfLpar({"a valid try clause"}));
expr->block.end_loc = GetLocation();
@@ -2779,12 +2775,6 @@ Result WastParser::ParseExpr(ExprList* exprs) {
CHECK_RESULT(ParseCatchExprList(&expr->catches));
expr->kind = TryKind::Catch;
break;
- case TokenType::Unwind:
- Consume();
- CHECK_RESULT(ParseTerminatingInstrList(&expr->unwind));
- expr->kind = TryKind::Unwind;
- EXPECT(Rpar);
- break;
case TokenType::Delegate: {
Consume();
Var var;
@@ -2795,7 +2785,7 @@ Result WastParser::ParseExpr(ExprList* exprs) {
break;
}
default:
- ErrorExpected({"catch", "catch_all", "unwind", "delegate"});
+ ErrorExpected({"catch", "catch_all", "delegate"});
break;
}
CHECK_RESULT(ErrorIfLpar({"a valid try clause"}));