summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm-s-parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index dae321866..bb6fe3fd4 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -173,7 +173,7 @@ private:
curr->list().push_back(parseString());
}
}
- assert(stack.size() == 0);
+ if (stack.size() != 0) throw ParseException("stack is not empty", curr->line, curr->col);
return curr;
}