diff --git a/circle.yml b/circle.yml index cbd0bfcd3..131cfaa64 100644 --- a/circle.yml +++ b/circle.yml @@ -272,8 +272,8 @@ jobs: - benchmark: min_time: "0.01" - spectest: - expected_passed: 4856 - expected_failed: 576 + expected_passed: 4859 + expected_failed: 573 expected_skipped: 6381 sanitizers-macos: @@ -290,8 +290,8 @@ jobs: - benchmark: min_time: "0.01" - spectest: - expected_passed: 4856 - expected_failed: 576 + expected_passed: 4859 + expected_failed: 573 expected_skipped: 6381 benchmark: @@ -401,8 +401,8 @@ jobs: expected_failed: 8 expected_skipped: 7323 - spectest: - expected_passed: 4856 - expected_failed: 576 + expected_passed: 4859 + expected_failed: 573 expected_skipped: 6381 workflows: diff --git a/lib/fizzy/parser.cpp b/lib/fizzy/parser.cpp index 985f6c9de..9c23cc117 100644 --- a/lib/fizzy/parser.cpp +++ b/lib/fizzy/parser.cpp @@ -528,7 +528,7 @@ Module parse(bytes_view input) if (!module.elementsec.empty() && module.tablesec.empty() && module.imported_table_types.empty()) - throw parser_error("element section encountered without a table section"); + throw validation_error("element section encountered without a table section"); if (module.funcsec.size() != code_binaries.size()) throw parser_error("malformed binary: number of function and code entries must match"); diff --git a/test/unittests/parser_test.cpp b/test/unittests/parser_test.cpp index cc7ef0b5f..8c5ffbfeb 100644 --- a/test/unittests/parser_test.cpp +++ b/test/unittests/parser_test.cpp @@ -878,7 +878,7 @@ TEST(parser, element_section_no_table_section) const auto wasm = bytes{wasm_prefix} + make_section(9, make_vec({"000b"_bytes + make_vec({"00"_bytes})})); EXPECT_THROW_MESSAGE( - parse(wasm), parser_error, "element section encountered without a table section"); + parse(wasm), validation_error, "element section encountered without a table section"); } TEST(parser, code_section_empty)