diff options
-rw-r--r-- | src/binary-writer-spec.cc | 3 | ||||
-rw-r--r-- | src/tools/spectest-interp.cc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/binary-writer-spec.cc b/src/binary-writer-spec.cc index 002162ce..c418daa7 100644 --- a/src/binary-writer-spec.cc +++ b/src/binary-writer-spec.cc @@ -490,6 +490,9 @@ void BinaryWriterSpec::WriteCommands() { WriteSeparator(); WriteAction(*assert_exhaustion_command->action); WriteSeparator(); + WriteKey("text"); + WriteEscapedString(assert_exhaustion_command->text); + WriteSeparator(); WriteKey("expected"); WriteActionResultType(*assert_exhaustion_command->action); break; diff --git a/src/tools/spectest-interp.cc b/src/tools/spectest-interp.cc index 393e5207..1b40c74b 100644 --- a/src/tools/spectest-interp.cc +++ b/src/tools/spectest-interp.cc @@ -738,6 +738,8 @@ wabt::Result JSONParser::ParseCommand(CommandPtr* out_command) { EXPECT(","); CHECK_RESULT(ParseAction(&command->action)); EXPECT(","); + PARSE_KEY_STRING_VALUE("text", &command->text); + EXPECT(","); CHECK_RESULT(ParseActionResult()); *out_command = std::move(command); } else { |