From ab05c684e570951c39e081cc15fa659296445186 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 24 May 2016 11:58:37 -0700 Subject: show a parse error for empty stack --- src/wasm-s-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm-s-parser.h') 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; } -- cgit v1.2.3