summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wast-parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc
index a45e4424..2e0bfc57 100644
--- a/src/wast-parser.cc
+++ b/src/wast-parser.cc
@@ -1659,7 +1659,7 @@ Result WastParser::ParseGlobalType(Global* global) {
Result WastParser::ParseCommandList(CommandPtrVector* commands) {
WABT_TRACE(ParseCommandList);
- while (PeekMatch(TokenType::Lpar)) {
+ while (IsCommand(PeekPair())) {
CommandPtr command;
if (Succeeded(ParseCommand(&command))) {
commands->push_back(std::move(command));