summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r--src/wasm/wasm-validator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp
index 6035a38a9..15b17bf26 100644
--- a/src/wasm/wasm-validator.cpp
+++ b/src/wasm/wasm-validator.cpp
@@ -2078,9 +2078,6 @@ void FunctionValidator::visitTry(Try* curr) {
shouldBeFalse(curr->isCatch() && curr->isDelegate(),
curr,
"try cannot have both catch and delegate at the same time");
- shouldBeTrue(curr->isCatch() || curr->isDelegate(),
- curr,
- "try should have either catches or a delegate");
if (curr->isDelegate()) {
noteDelegate(curr->delegateTarget, curr);