diff options
290 files changed, 2465 insertions, 2588 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 06f2a497..fb8e7313 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,8 +230,7 @@ add_custom_target(everything) add_library(libwabt STATIC src/opcode.cc - src/binary-error-handler.cc - src/source-error-handler.cc + src/error-handler.cc src/hash-util.cc src/string-view.cc src/ir.cc diff --git a/src/binary-error-handler.cc b/src/binary-error-handler.cc deleted file mode 100644 index 4b3c0a23..00000000 --- a/src/binary-error-handler.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2017 WebAssembly Community Group participants - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "binary-error-handler.h" - -#include "common.h" - -namespace wabt { - -std::string BinaryErrorHandler::DefaultErrorMessage(Offset offset, - const std::string& error) { - if (offset == kInvalidOffset) - return string_printf("error: %s\n", error.c_str()); - else - return string_printf("error: @0x%08" PRIzx ": %s\n", offset, error.c_str()); -} - -BinaryErrorHandlerFile::BinaryErrorHandlerFile(FILE* file, - const std::string& header, - PrintHeader print_header) - : file_(file), header_(header), print_header_(print_header) {} - -bool BinaryErrorHandlerFile::OnError(Offset offset, const std::string& error) { - PrintErrorHeader(); - std::string message = DefaultErrorMessage(offset, error); - fwrite(message.data(), 1, message.size(), file_); - fflush(file_); - return true; -} - -void BinaryErrorHandlerFile::PrintErrorHeader() { - if (header_.empty()) - return; - - switch (print_header_) { - case PrintHeader::Never: - break; - - case PrintHeader::Once: - print_header_ = PrintHeader::Never; - // Fallthrough. - - case PrintHeader::Always: - fprintf(file_, "%s:\n", header_.c_str()); - break; - } - // If there's a header, indent the following message. - fprintf(file_, " "); -} - -bool BinaryErrorHandlerBuffer::OnError(Offset offset, - const std::string& error) { - buffer_ += DefaultErrorMessage(offset, error); - return true; -} - -} // namespace wabt diff --git a/src/binary-error-handler.h b/src/binary-error-handler.h deleted file mode 100644 index e4644dd2..00000000 --- a/src/binary-error-handler.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2017 WebAssembly Community Group participants - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef WABT_BINARY_ERROR_HANDLER_H_ -#define WABT_BINARY_ERROR_HANDLER_H_ - -#include <cstdint> -#include <cstdio> -#include <string> - -#include "common.h" - -namespace wabt { - -class BinaryErrorHandler { - public: - virtual ~BinaryErrorHandler() {} - - // Returns true if the error was handled. - virtual bool OnError(Offset offset, const std::string& error) = 0; - - std::string DefaultErrorMessage(Offset offset, const std::string& error); -}; - -class BinaryErrorHandlerFile : public BinaryErrorHandler { - public: - enum class PrintHeader { - Never, - Once, - Always, - }; - - BinaryErrorHandlerFile(FILE* file = stderr, - const std::string& header = std::string(), - PrintHeader print_header = PrintHeader::Never); - - bool OnError(Offset offset, const std::string& error) override; - - private: - void PrintErrorHeader(); - - FILE* file_; - std::string header_; - PrintHeader print_header_; -}; - -class BinaryErrorHandlerBuffer : public BinaryErrorHandler { - public: - BinaryErrorHandlerBuffer() = default; - - bool OnError(Offset offset, const std::string& error) override; - - const std::string& buffer() const { return buffer_; } - - private: - std::string buffer_; -}; - -} // namespace wabt - -#endif // WABT_BINARY_ERROR_HANDLER_H_ diff --git a/src/binary-reader-interpreter.cc b/src/binary-reader-interpreter.cc index db026afe..4f16fd50 100644 --- a/src/binary-reader-interpreter.cc +++ b/src/binary-reader-interpreter.cc @@ -22,8 +22,8 @@ #include <cstdio> #include <vector> -#include "binary-error-handler.h" #include "binary-reader-nop.h" +#include "error-handler.h" #include "interpreter.h" #include "type-checker.h" #include "writer.h" @@ -76,7 +76,7 @@ class BinaryReaderInterpreter : public BinaryReaderNop { BinaryReaderInterpreter(Environment* env, DefinedModule* module, std::unique_ptr<OutputBuffer> istream, - BinaryErrorHandler* error_handler); + ErrorHandler* error_handler); wabt::Result ReadBinary(DefinedModule* out_module); @@ -261,7 +261,7 @@ class BinaryReaderInterpreter : public BinaryReaderNop { HostImportDelegate::ErrorCallback MakePrintErrorCallback(); - BinaryErrorHandler* error_handler = nullptr; + ErrorHandler* error_handler = nullptr; Environment* env = nullptr; DefinedModule* module = nullptr; DefinedFunc* current_func = nullptr; @@ -298,7 +298,7 @@ BinaryReaderInterpreter::BinaryReaderInterpreter( Environment* env, DefinedModule* module, std::unique_ptr<OutputBuffer> istream, - BinaryErrorHandler* error_handler) + ErrorHandler* error_handler) : error_handler(error_handler), env(env), module(module), @@ -1442,7 +1442,7 @@ wabt::Result read_binary_interpreter(Environment* env, const void* data, size_t size, const ReadBinaryOptions* options, - BinaryErrorHandler* error_handler, + ErrorHandler* error_handler, DefinedModule** out_module) { // Need to mark before taking ownership of env->istream. Environment::MarkPoint mark = env->Mark(); diff --git a/src/binary-reader-interpreter.h b/src/binary-reader-interpreter.h index 1c70d3bf..0cd08d83 100644 --- a/src/binary-reader-interpreter.h +++ b/src/binary-reader-interpreter.h @@ -28,14 +28,14 @@ class Environment; } // namespace interpreter -class BinaryErrorHandler; +class ErrorHandler; struct ReadBinaryOptions; Result read_binary_interpreter(interpreter::Environment* env, const void* data, size_t size, const ReadBinaryOptions* options, - BinaryErrorHandler*, + ErrorHandler*, interpreter::DefinedModule** out_module); } // namespace wabt diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc index 5140c586..b1e2006e 100644 --- a/src/binary-reader-ir.cc +++ b/src/binary-reader-ir.cc @@ -23,10 +23,10 @@ #include <cstdio> #include <vector> -#include "binary-error-handler.h" #include "binary-reader-nop.h" #include "cast.h" #include "common.h" +#include "error-handler.h" #include "ir.h" #define CHECK_RESULT(expr) \ @@ -55,7 +55,7 @@ class BinaryReaderIR : public BinaryReaderNop { public: BinaryReaderIR(Module* out_module, const char* filename, - BinaryErrorHandler* error_handler); + ErrorHandler* error_handler); bool OnError(const char* message) override; @@ -219,7 +219,7 @@ class BinaryReaderIR : public BinaryReaderNop { Result AppendExpr(Expr* expr); Result AppendCatch(Catch* catch_); - BinaryErrorHandler* error_handler = nullptr; + ErrorHandler* error_handler = nullptr; Module* module = nullptr; Func* current_func = nullptr; @@ -230,7 +230,7 @@ class BinaryReaderIR : public BinaryReaderNop { BinaryReaderIR::BinaryReaderIR(Module* out_module, const char* filename, - BinaryErrorHandler* error_handler) + ErrorHandler* error_handler) : error_handler(error_handler), module(out_module), filename_(filename) {} Location BinaryReaderIR::GetLocation() const { @@ -986,7 +986,7 @@ Result read_binary_ir(const char* filename, const void* data, size_t size, const ReadBinaryOptions* options, - BinaryErrorHandler* error_handler, + ErrorHandler* error_handler, struct Module* out_module) { BinaryReaderIR reader(out_module, filename, error_handler); Result result = read_binary(data, size, &reader, options); diff --git a/src/binary-reader-ir.h b/src/binary-reader-ir.h index 54a54939..b5d730fa 100644 --- a/src/binary-reader-ir.h +++ b/src/binary-reader-ir.h @@ -21,15 +21,15 @@ namespace wabt { +class ErrorHandler; struct Module; struct ReadBinaryOptions; -class BinaryErrorHandler; Result read_binary_ir(const char* filename, const void* data, size_t size, const ReadBinaryOptions* options, - BinaryErrorHandler*, + ErrorHandler*, Module* out_module); } // namespace wabt diff --git a/src/common.h b/src/common.h index 04cd39fc..a6ead164 100644 --- a/src/common.h +++ b/src/common.h @@ -147,9 +147,10 @@ struct Location { Binary, }; - Location() : filename(NULL), line(0), first_column(0), last_column(0) {} + Location() : line(0), first_column(0), last_column(0) {} + explicit Location(size_t offset) : offset(offset) {} - const char* filename; + const char* filename = nullptr; union { // For text files. struct { diff --git a/src/emscripten-exported.json b/src/emscripten-exported.json index 6c0ed71d..fff5e305 100644 --- a/src/emscripten-exported.json +++ b/src/emscripten-exported.json @@ -1,21 +1,17 @@ [ "_malloc", "_wabt_apply_names_module", -"_wabt_binary_error_handler_buffer_get_data", -"_wabt_binary_error_handler_buffer_get_size", -"_wabt_destroy_binary_error_handler_buffer", "_wabt_destroy_module", "_wabt_destroy_output_buffer", "_wabt_destroy_parse_wast_result", "_wabt_destroy_read_binary_result", "_wabt_destroy_script", -"_wabt_destroy_source_error_handler_buffer", +"_wabt_destroy_error_handler_buffer", "_wabt_destroy_wast_lexer", "_wabt_destroy_write_module_result", "_wabt_generate_names_module", "_wabt_get_first_module", -"_wabt_new_binary_error_handler_buffer", -"_wabt_new_source_error_handler_buffer", +"_wabt_new_error_handler_buffer", "_wabt_new_wast_buffer_lexer", "_wabt_output_buffer_get_data", "_wabt_output_buffer_get_size", @@ -26,8 +22,8 @@ "_wabt_read_binary_result_get_result", "_wabt_read_binary_result_release_module", "_wabt_resolve_names_script", -"_wabt_source_error_handler_buffer_get_data", -"_wabt_source_error_handler_buffer_get_size", +"_wabt_error_handler_buffer_get_data", +"_wabt_error_handler_buffer_get_size", "_wabt_validate_script", "_wabt_write_binary_module", "_wabt_write_module_result_get_result", diff --git a/src/emscripten-helpers.cc b/src/emscripten-helpers.cc index e2b244de..5090528e 100644 --- a/src/emscripten-helpers.cc +++ b/src/emscripten-helpers.cc @@ -25,12 +25,11 @@ #include "binary-reader.h" #include "binary-reader-ir.h" #include "binary-writer.h" -#include "binary-error-handler.h" #include "common.h" +#include "error-handler.h" #include "ir.h" #include "generate-names.h" #include "resolve-names.h" -#include "source-error-handler.h" #include "stream.h" #include "validator.h" #include "wast-lexer.h" @@ -64,9 +63,8 @@ wabt::WastLexer* wabt_new_wast_buffer_lexer(const char* filename, return lexer.release(); } -WabtParseWastResult* wabt_parse_wast( - wabt::WastLexer* lexer, - wabt::SourceErrorHandlerBuffer* error_handler) { +WabtParseWastResult* wabt_parse_wast(wabt::WastLexer* lexer, + wabt::ErrorHandlerBuffer* error_handler) { WabtParseWastResult* result = new WabtParseWastResult(); wabt::Script* script = nullptr; result->result = wabt::parse_wast(lexer, &script, error_handler); @@ -78,7 +76,7 @@ WabtReadBinaryResult* wabt_read_binary( const void* data, size_t size, int read_debug_names, - wabt::BinaryErrorHandlerBuffer* error_handler) { + wabt::ErrorHandlerBuffer* error_handler) { wabt::ReadBinaryOptions options; options.log_stream = nullptr; options.read_debug_names = read_debug_names; @@ -96,21 +94,20 @@ WabtReadBinaryResult* wabt_read_binary( wabt::Result wabt_resolve_names_script( wabt::WastLexer* lexer, wabt::Script* script, - wabt::SourceErrorHandlerBuffer* error_handler) { + wabt::ErrorHandlerBuffer* error_handler) { return resolve_names_script(lexer, script, error_handler); } wabt::Result wabt_resolve_names_module( wabt::WastLexer* lexer, wabt::Module* module, - wabt::SourceErrorHandlerBuffer* error_handler) { + wabt::ErrorHandlerBuffer* error_handler) { return resolve_names_module(lexer, module, error_handler); } -wabt::Result wabt_validate_script( - wabt::WastLexer* lexer, - wabt::Script* script, - wabt::SourceErrorHandlerBuffer* error_handler) { +wabt::Result wabt_validate_script(wabt::WastLexer* lexer, + wabt::Script* script, + wabt::ErrorHandlerBuffer* error_handler) { return validate_script(lexer, script, error_handler); } @@ -177,43 +174,27 @@ void wabt_destroy_wast_lexer(wabt::WastLexer* lexer) { delete lexer; } -// SourceErrorHandlerBuffer -wabt::SourceErrorHandlerBuffer* wabt_new_source_error_handler_buffer(void) { - return new wabt::SourceErrorHandlerBuffer(); -} - -const void* wabt_source_error_handler_buffer_get_data( - wabt::SourceErrorHandlerBuffer* error_handler) { - return error_handler->buffer().data(); -} - -size_t wabt_source_error_handler_buffer_get_size( - wabt::SourceErrorHandlerBuffer* error_handler) { - return error_handler->buffer().size(); -} - -void wabt_destroy_source_error_handler_buffer( - wabt::SourceErrorHandlerBuffer* error_handler) { - delete error_handler; +// ErrorHandlerBuffer +wabt::ErrorHandlerBuffer* wabt_new_text_error_handler_buffer(void) { + return new wabt::ErrorHandlerBuffer(wabt::Location::Type::Text); } -// BinaryErrorHandlerBuffer -wabt::BinaryErrorHandlerBuffer* wabt_new_binary_error_handler_buffer(void) { - return new wabt::BinaryErrorHandlerBuffer(); +wabt::ErrorHandlerBuffer* wabt_new_binary_error_handler_buffer(void) { + return new wabt::ErrorHandlerBuffer(wabt::Location::Type::Binary); } -const void* wabt_binary_error_handler_buffer_get_data( - wabt::BinaryErrorHandlerBuffer* error_handler) { +const void* wabt_error_handler_buffer_get_data( + wabt::ErrorHandlerBuffer* error_handler) { return error_handler->buffer().data(); } -size_t wabt_binary_error_handler_buffer_get_size( - wabt::BinaryErrorHandlerBuffer* error_handler) { +size_t wabt_error_handler_buffer_get_size( + wabt::ErrorHandlerBuffer* error_handler) { return error_handler->buffer().size(); } -void wabt_destroy_binary_error_handler_buffer( - wabt::BinaryErrorHandlerBuffer* error_handler) { +void wabt_destroy_error_handler_buffer( + wabt::ErrorHandlerBuffer* error_handler) { delete error_handler; } diff --git a/src/source-error-handler.cc b/src/error-handler.cc index 7424b973..d6328870 100644 --- a/src/source-error-handler.cc +++ b/src/error-handler.cc @@ -14,42 +14,52 @@ * limitations under the License. */ -#include "source-error-handler.h" +#include "error-handler.h" #include <algorithm> namespace wabt { -SourceErrorHandler::SourceErrorHandler(Location::Type location_type) +ErrorHandler::ErrorHandler(Location::Type location_type) : location_type_(location_type) {} -std::string SourceErrorHandler::DefaultErrorMessage( - const Color& color, - const Location* loc, - const std::string& error, - const std::string& source_line, - size_t source_line_column_offset, - int indent) { +std::string ErrorHandler::DefaultErrorMessage(const Color& color, + const Location& loc, + const std::string& error, + const std::string& source_line, + size_t source_line_column_offset, + int indent) { std::string indent_str(indent, ' '); std::string result = indent_str; + result += color.MaybeBoldCode(); + + if (loc.filename) { + result += loc.filename; + result += ":"; + } + if (location_type_ == Location::Type::Text) { - result += string_printf("%s:%d:%d: ", loc->filename, loc->line, - loc->first_column); - } else { - result += string_printf("%s:%" PRIzd ": ", loc->filename, loc->offset); + result += string_printf("%d:%d: ", loc.line, loc.first_column); + } else if (loc.offset != kInvalidOffset) { + result += string_printf("%07" PRIzx ": ", loc.offset); } + + result += color.MaybeRedCode(); + result += "error: "; result += color.MaybeDefaultCode(); + result += error; result += '\n'; - result += indent_str; + if (!source_line.empty()) { + result += indent_str; result += source_line; result += '\n'; result += indent_str; - size_t num_spaces = (loc->first_column - 1) - source_line_column_offset; - size_t num_carets = loc->last_column - loc->first_column; + size_t num_spaces = (loc.first_column - 1) - source_line_column_offset; + size_t num_carets = loc.last_column - loc.first_column; num_carets = std::min(num_carets, source_line.size() - num_spaces); num_carets = std::max<size_t>(num_carets, 1); result.append(num_spaces, ' '); @@ -59,38 +69,40 @@ std::string SourceErrorHandler::DefaultErrorMessage( result += color.MaybeDefaultCode(); result += '\n'; } + return result; } -SourceErrorHandlerNop::SourceErrorHandlerNop() +ErrorHandlerNop::ErrorHandlerNop() // The Location::Type is irrelevant since we never display an error. - : SourceErrorHandler(Location::Type::Text) {} - -SourceErrorHandlerFile::SourceErrorHandlerFile(FILE* file, - const std::string& header, - PrintHeader print_header, - size_t source_line_max_length, - Location::Type location_type) - : SourceErrorHandler(location_type), + : ErrorHandler(Location::Type::Text) {} + +ErrorHandlerFile::ErrorHandlerFile(Location::Type location_type, + FILE* file, + const std::string& header, + PrintHeader print_header, + size_t source_line_max_length) + : ErrorHandler(location_type), file_(file), header_(header), print_header_(print_header), source_line_max_length_(source_line_max_length), color_(file) {} -bool SourceErrorHandlerFile::OnError(const Location* loc, - const std::string& error, - const std::string& source_line, - size_t source_line_column_offset) { +bool ErrorHandlerFile::OnError(const Location& loc, + const std::string& error, + const std::string& source_line, + size_t source_line_column_offset) { PrintErrorHeader(); int indent = header_.empty() ? 0 : 2; + std::string message = DefaultErrorMessage(color_, loc, error, source_line, source_line_column_offset, indent); fwrite(message.data(), 1, message.size(), file_); return true; } -void SourceErrorHandlerFile::PrintErrorHeader() { +void ErrorHandlerFile::PrintErrorHeader() { if (header_.empty()) return; @@ -108,17 +120,16 @@ void SourceErrorHandlerFile::PrintErrorHeader() { } } -SourceErrorHandlerBuffer::SourceErrorHandlerBuffer( - size_t source_line_max_length, - Location::Type location_type) - : SourceErrorHandler(location_type), +ErrorHandlerBuffer::ErrorHandlerBuffer(Location::Type location_type, + size_t source_line_max_length) + : ErrorHandler(location_type), source_line_max_length_(source_line_max_length), color_(nullptr, false) {} -bool SourceErrorHandlerBuffer::OnError(const Location* loc, - const std::string& error, - const std::string& source_line, - size_t source_line_column_offset) { +bool ErrorHandlerBuffer::OnError(const Location& loc, + const std::string& error, + const std::string& source_line, + size_t source_line_column_offset) { buffer_ += DefaultErrorMessage(color_, loc, error, source_line, source_line_column_offset, 0); return true; diff --git a/src/source-error-handler.h b/src/error-handler.h index 5e09dc26..6d99983d 100644 --- a/src/source-error-handler.h +++ b/src/error-handler.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef WABT_SOURCE_ERROR_HANDLER_H_ -#define WABT_SOURCE_ERROR_HANDLER_H_ +#ifndef WABT_ERROR_HANDLER_H_ +#define WABT_ERROR_HANDLER_H_ #include <string> @@ -24,23 +24,28 @@ namespace wabt { -class SourceErrorHandler { +class ErrorHandler { public: - explicit SourceErrorHandler(Location::Type); + explicit ErrorHandler(Location::Type); - virtual ~SourceErrorHandler() {} + virtual ~ErrorHandler() {} // Returns true if the error was handled. - virtual bool OnError(const Location*, + virtual bool OnError(const Location&, const std::string& error, const std::string& source_line, size_t source_line_column_offset) = 0; + // Helper function for binary locations. + bool OnError(size_t offset, const std::string& error) { + return OnError(Location(offset), error, std::string(), 0); + } + // OnError will be called with with source_line trimmed to this length. virtual size_t source_line_max_length() const = 0; std::string DefaultErrorMessage(const Color&, - const Location*, + const Location&, const std::string& error, const std::string& source_line, size_t source_line_column_offset, @@ -50,11 +55,11 @@ class SourceErrorHandler { Location::Type location_type_; }; -class SourceErrorHandlerNop : public SourceErrorHandler { +class ErrorHandlerNop : public ErrorHandler { public: - SourceErrorHandlerNop(); + ErrorHandlerNop(); - bool OnError(const Location*, + bool OnError(const Location&, const std::string& error, const std::string& source_line, size_t source_line_column_offset) override { @@ -64,7 +69,7 @@ class SourceErrorHandlerNop : public SourceErrorHandler { size_t source_line_max_length() const override { return 80; } }; -class SourceErrorHandlerFile : public SourceErrorHandler { +class ErrorHandlerFile : public ErrorHandler { public: enum class PrintHeader { Never, @@ -72,13 +77,13 @@ class SourceErrorHandlerFile : public SourceErrorHandler { Always, }; - SourceErrorHandlerFile(FILE* file = stderr, - const std::string& header = std::string(), - PrintHeader print_header = PrintHeader::Never, - size_t source_line_max_length = 80, - Location::Type = Location::Type::Text); + explicit ErrorHandlerFile(Location::Type, + FILE* file = stderr, + const std::string& header = std::string(), + PrintHeader print_header = PrintHeader::Never, + size_t source_line_max_length = 80); - bool OnError(const Location*, + bool OnError(const Location&, const std::string& error, const std::string& source_line, size_t source_line_column_offset) override; @@ -89,7 +94,6 @@ class SourceErrorHandlerFile : public SourceErrorHandler { private: void PrintErrorHeader(); - void PrintSourceError(); FILE* file_; std::string header_; @@ -98,12 +102,12 @@ class SourceErrorHandlerFile : public SourceErrorHandler { Color color_; }; -class SourceErrorHandlerBuffer : public SourceErrorHandler { +class ErrorHandlerBuffer : public ErrorHandler { public: - explicit SourceErrorHandlerBuffer(size_t source_line_max_length = 80, - Location::Type = Location::Type::Text); + explicit ErrorHandlerBuffer(Location::Type, + size_t source_line_max_length = 80); - bool OnError(const Location*, + bool OnError(const Location&, const std::string& error, const std::string& source_line, size_t source_line_column_offset) override; @@ -122,4 +126,4 @@ class SourceErrorHandlerBuffer : public SourceErrorHandler { } // namespace wabt -#endif // WABT_SOURCE_ERROR_HANDLER_H_ +#endif // WABT_ERROR_HANDLER_H_ diff --git a/src/prebuilt/wast-parser-gen.cc b/src/prebuilt/wast-parser-gen.cc index 2454772e..8d88f564 100644 --- a/src/prebuilt/wast-parser-gen.cc +++ b/src/prebuilt/wast-parser-gen.cc @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.0.4. */ +/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,7 +44,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "3.0.4" +#define YYBISON_VERSION "3.0.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -79,10 +79,10 @@ #include <cstdlib> #include <utility> -#include "binary-error-handler.h" #include "binary-reader.h" #include "binary-reader-ir.h" #include "cast.h" +#include "error-handler.h" #include "literal.h" #include "wast-parser.h" #include "wast-parser-lexer-shared.h" @@ -192,10 +192,16 @@ static void check_import_ordering(Location* loc, const ModuleFieldList&); static void append_module_fields(Module*, ModuleFieldList*); -class BinaryErrorHandlerModule : public BinaryErrorHandler { +class BinaryErrorHandlerModule : public ErrorHandler { public: BinaryErrorHandlerModule(Location* loc, WastLexer* lexer, WastParser* parser); - bool OnError(Offset offset, const std::string& error) override; + bool OnError(const Location&, + const std::string& error, + const std::string& source_line, + size_t source_line_column_offset) override; + + // Unused. + size_t source_line_max_length() const override { return 0; } private: Location* loc_; @@ -207,7 +213,7 @@ class BinaryErrorHandlerModule : public BinaryErrorHandler { #define wabt_wast_parser_error wast_parser_error -#line 211 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:339 */ +#line 217 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:339 */ # ifndef YY_NULLPTR # if defined __cplusplus && 201103L <= __cplusplus @@ -362,7 +368,7 @@ int wabt_wast_parser_parse (::wabt::WastLexer* lexer, ::wabt::WastParser* parser /* Copy the second part of user declarations. */ -#line 366 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:358 */ +#line 372 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:358 */ #ifdef short # undef short @@ -669,28 +675,28 @@ static const yytype_uint8 yytranslate[] = /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 260, 260, 266, 276, 277, 281, 299, 300, 306, - 309, 314, 322, 326, 327, 332, 341, 342, 350, 356, - 362, 367, 374, 380, 391, 395, 399, 406, 410, 418, - 419, 426, 427, 430, 434, 435, 439, 440, 456, 457, - 472, 476, 480, 484, 487, 490, 493, 496, 500, 504, - 508, 511, 515, 519, 523, 527, 531, 535, 539, 542, - 545, 557, 560, 563, 566, 569, 572, 575, 579, 586, - 592, 598, 604, 612, 621, 624, 629, 636, 644, 652, - 653, 657, 662, 669, 673, 678, 684, 690, 695, 704, - 710, 720, 723, 729, 734, 742, 749, 752, 759, 765, - 773, 780, 788, 798, 803, 809, 815, 816, 823, 824, - 831, 836, 842, 849, 862, 869, 872, 881, 887, 896, - 903, 904, 910, 920, 921, 930, 937, 938, 944, 954, - 955, 964, 971, 976, 981, 993, 996, 1000, 1010, 1024, - 1037, 1040, 1046, 1052, 1072, 1082, 1096, 1109, 1112, 1118, - 1124, 1147, 1160, 1166, 1172, 1183, 1192, 1200, 1206, 1212, - 1218, 1226, 1235, 1243, 1249, 1255, 1261, 1267, 1275, 1283, - 1293, 1299, 1309, 1316, 1317, 1318, 1319, 1320, 1321, 1322, - 1323, 1324, 1325, 1326, 1330, 1331, 1335, 1341, 1350, 1371, - 1378, 1381, 1389, 1407, 1415, 1426, 1437, 1448, 1451, 1454, - 1457, 1460, 1463, 1466, 1469, 1472, 1478, 1481, 1482, 1485, - 1493, 1497, 1504, 1516, 1517, 1524, 1527, 1591, 1600 + 0, 266, 266, 272, 282, 283, 287, 305, 306, 312, + 315, 320, 328, 332, 333, 338, 347, 348, 356, 362, + 368, 373, 380, 386, 397, 401, 405, 412, 416, 424, + 425, 432, 433, 436, 440, 441, 445, 446, 462, 463, + 478, 482, 486, 490, 493, 496, 499, 502, 506, 510, + 514, 517, 521, 525, 529, 533, 537, 541, 545, 548, + 551, 563, 566, 569, 572, 575, 578, 581, 585, 592, + 598, 604, 610, 618, 627, 630, 635, 642, 650, 658, + 659, 663, 668, 675, 679, 684, 690, 696, 701, 710, + 716, 726, 729, 735, 740, 748, 755, 758, 765, 771, + 779, 786, 794, 804, 809, 815, 821, 822, 829, 830, + 837, 842, 848, 855, 868, 875, 878, 887, 893, 902, + 909, 910, 916, 926, 927, 936, 943, 944, 950, 960, + 961, 970, 977, 982, 987, 999, 1002, 1006, 1016, 1030, + 1043, 1046, 1052, 1058, 1078, 1088, 1102, 1115, 1118, 1124, + 1130, 1153, 1166, 1172, 1178, 1189, 1198, 1206, 1212, 1218, + 1224, 1232, 1241, 1249, 1255, 1261, 1267, 1273, 1281, 1289, + 1299, 1305, 1315, 1322, 1323, 1324, 1325, 1326, 1327, 1328, + 1329, 1330, 1331, 1332, 1336, 1337, 1341, 1347, 1356, 1377, + 1384, 1387, 1395, 1413, 1421, 1432, 1443, 1454, 1457, 1460, + 1463, 1466, 1469, 1472, 1475, 1478, 1484, 1487, 1488, 1491, + 1499, 1503, 1510, 1522, 1523, 1530, 1533, 1597, 1606 }; #endif @@ -1721,417 +1727,417 @@ yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocatio switch (yytype) { case 5: /* NAT */ -#line 224 "src/wast-parser.y" /* yacc.c:1257 */ +#line 230 "src/wast-parser.y" /* yacc.c:1257 */ {} -#line 1727 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1733 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 6: /* INT */ -#line 224 "src/wast-parser.y" /* yacc.c:1257 */ +#line 230 "src/wast-parser.y" /* yacc.c:1257 */ {} -#line 1733 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1739 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 7: /* FLOAT */ -#line 224 "src/wast-parser.y" /* yacc.c:1257 */ +#line 230 "src/wast-parser.y" /* yacc.c:1257 */ {} -#line 1739 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1745 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 8: /* TEXT */ -#line 224 "src/wast-parser.y" /* yacc.c:1257 */ +#line 230 "src/wast-parser.y" /* yacc.c:1257 */ {} -#line 1745 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1751 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 9: /* VAR */ -#line 224 "src/wast-parser.y" /* yacc.c:1257 */ +#line 230 "src/wast-parser.y" /* yacc.c:1257 */ {} -#line 1751 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1757 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 41: /* OFFSET_EQ_NAT */ -#line 224 "src/wast-parser.y" /* yacc.c:1257 */ +#line 230 "src/wast-parser.y" /* yacc.c:1257 */ {} -#line 1757 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1763 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 42: /* ALIGN_EQ_NAT */ -#line 224 "src/wast-parser.y" /* yacc.c:1257 */ +#line 230 "src/wast-parser.y" /* yacc.c:1257 */ {} -#line 1763 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1769 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 83: /* text_list */ -#line 244 "src/wast-parser.y" /* yacc.c:1257 */ +#line 250 "src/wast-parser.y" /* yacc.c:1257 */ { destroy_text_list(&((*yyvaluep).text_list)); } -#line 1769 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1775 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 84: /* text_list_opt */ -#line 244 "src/wast-parser.y" /* yacc.c:1257 */ +#line 250 "src/wast-parser.y" /* yacc.c:1257 */ { destroy_text_list(&((*yyvaluep).text_list)); } -#line 1775 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1781 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 85: /* quoted_text */ -#line 225 "src/wast-parser.y" /* yacc.c:1257 */ +#line 231 "src/wast-parser.y" /* yacc.c:1257 */ { destroy_string_slice(&((*yyvaluep).text)); } -#line 1781 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1787 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 86: /* value_type_list */ -#line 245 "src/wast-parser.y" /* yacc.c:1257 */ +#line 251 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).types); } -#line 1787 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1793 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 88: /* global_type */ -#line 238 "src/wast-parser.y" /* yacc.c:1257 */ +#line 244 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).global); } -#line 1793 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1799 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 89: /* func_type */ -#line 237 "src/wast-parser.y" /* yacc.c:1257 */ +#line 243 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func_sig); } -#line 1799 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1805 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 90: /* func_sig */ -#line 237 "src/wast-parser.y" /* yacc.c:1257 */ +#line 243 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func_sig); } -#line 1805 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1811 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 91: /* func_sig_result */ -#line 237 "src/wast-parser.y" /* yacc.c:1257 */ +#line 243 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func_sig); } -#line 1811 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1817 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 93: /* memory_sig */ -#line 240 "src/wast-parser.y" /* yacc.c:1257 */ +#line 246 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).memory); } -#line 1817 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1823 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 95: /* type_use */ -#line 246 "src/wast-parser.y" /* yacc.c:1257 */ +#line 252 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).var); } -#line 1823 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1829 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 97: /* literal */ -#line 226 "src/wast-parser.y" /* yacc.c:1257 */ +#line 232 "src/wast-parser.y" /* yacc.c:1257 */ { destroy_string_slice(&((*yyvaluep).literal).text); } -#line 1829 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1835 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 98: /* var */ -#line 246 "src/wast-parser.y" /* yacc.c:1257 */ +#line 252 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).var); } -#line 1835 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1841 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 99: /* var_list */ -#line 247 "src/wast-parser.y" /* yacc.c:1257 */ +#line 253 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).vars); } -#line 1841 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1847 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 100: /* bind_var_opt */ -#line 225 "src/wast-parser.y" /* yacc.c:1257 */ +#line 231 "src/wast-parser.y" /* yacc.c:1257 */ { destroy_string_slice(&((*yyvaluep).text)); } -#line 1847 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1853 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 101: /* bind_var */ -#line 225 "src/wast-parser.y" /* yacc.c:1257 */ +#line 231 "src/wast-parser.y" /* yacc.c:1257 */ { destroy_string_slice(&((*yyvaluep).text)); } -#line 1853 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1859 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 102: /* labeling_opt */ -#line 225 "src/wast-parser.y" /* yacc.c:1257 */ +#line 231 "src/wast-parser.y" /* yacc.c:1257 */ { destroy_string_slice(&((*yyvaluep).text)); } -#line 1859 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1865 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 105: /* instr */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1865 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1871 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 106: /* plain_instr */ -#line 233 "src/wast-parser.y" /* yacc.c:1257 */ +#line 239 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr); } -#line 1871 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1877 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 107: /* block_instr */ -#line 233 "src/wast-parser.y" /* yacc.c:1257 */ +#line 239 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr); } -#line 1877 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1883 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 108: /* block_sig */ -#line 245 "src/wast-parser.y" /* yacc.c:1257 */ +#line 251 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).types); } -#line 1883 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1889 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 109: /* block */ -#line 228 "src/wast-parser.y" /* yacc.c:1257 */ +#line 234 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).block); } -#line 1889 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1895 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 114: /* expr */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1895 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1901 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 115: /* expr1 */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1901 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1907 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 119: /* if_block */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1907 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1913 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 120: /* if_ */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1913 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1919 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 124: /* instr_list */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1919 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1925 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 125: /* expr_list */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1925 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1931 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 126: /* const_expr */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1931 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1937 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 129: /* func */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 1937 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1943 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 130: /* func_fields */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 1943 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1949 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 131: /* func_fields_import */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1949 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1955 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 132: /* func_fields_import1 */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1955 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1961 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 133: /* func_fields_import_result */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1961 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1967 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 134: /* func_fields_body */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1967 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1973 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 135: /* func_fields_body1 */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1973 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1979 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 136: /* func_result_body */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1979 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1985 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 137: /* func_body */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1985 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1991 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 138: /* func_body1 */ -#line 236 "src/wast-parser.y" /* yacc.c:1257 */ +#line 242 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).func); } -#line 1991 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 1997 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 139: /* offset */ -#line 234 "src/wast-parser.y" /* yacc.c:1257 */ +#line 240 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).expr_list); } -#line 1997 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2003 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 141: /* table */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 2003 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2009 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 142: /* table_fields */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 2009 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2015 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 144: /* memory */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 2015 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2021 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 145: /* memory_fields */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 2021 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2027 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 146: /* global */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 2027 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2033 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 147: /* global_fields */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 2033 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2039 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 148: /* import_desc */ -#line 239 "src/wast-parser.y" /* yacc.c:1257 */ +#line 245 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).import); } -#line 2039 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2045 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 150: /* inline_import */ -#line 239 "src/wast-parser.y" /* yacc.c:1257 */ +#line 245 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).import); } -#line 2045 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2051 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 151: /* export_desc */ -#line 232 "src/wast-parser.y" /* yacc.c:1257 */ +#line 238 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).export_); } -#line 2051 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2057 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 153: /* inline_export */ -#line 232 "src/wast-parser.y" /* yacc.c:1257 */ +#line 238 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).export_); } -#line 2057 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2063 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 156: /* module_field */ -#line 235 "src/wast-parser.y" /* yacc.c:1257 */ +#line 241 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module_fields); } -#line 2063 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2069 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 157: /* module_fields_opt */ -#line 241 "src/wast-parser.y" /* yacc.c:1257 */ +#line 247 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module); } -#line 2069 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2075 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 158: /* module_fields */ -#line 241 "src/wast-parser.y" /* yacc.c:1257 */ +#line 247 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module); } -#line 2075 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2081 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 159: /* module */ -#line 241 "src/wast-parser.y" /* yacc.c:1257 */ +#line 247 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module); } -#line 2081 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2087 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 160: /* inline_module */ -#line 241 "src/wast-parser.y" /* yacc.c:1257 */ +#line 247 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).module); } -#line 2087 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2093 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 161: /* script_var_opt */ -#line 246 "src/wast-parser.y" /* yacc.c:1257 */ +#line 252 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).var); } -#line 2093 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2099 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 162: /* script_module */ -#line 242 "src/wast-parser.y" /* yacc.c:1257 */ +#line 248 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).script_module); } -#line 2099 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2105 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 163: /* action */ -#line 227 "src/wast-parser.y" /* yacc.c:1257 */ +#line 233 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).action); } -#line 2105 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2111 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 164: /* assertion */ -#line 229 "src/wast-parser.y" /* yacc.c:1257 */ +#line 235 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).command); } -#line 2111 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2117 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 165: /* cmd */ -#line 229 "src/wast-parser.y" /* yacc.c:1257 */ +#line 235 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).command); } -#line 2117 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2123 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 166: /* cmd_list */ -#line 230 "src/wast-parser.y" /* yacc.c:1257 */ +#line 236 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).commands); } -#line 2123 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2129 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 168: /* const_list */ -#line 231 "src/wast-parser.y" /* yacc.c:1257 */ +#line 237 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).consts); } -#line 2129 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2135 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; case 169: /* script */ -#line 243 "src/wast-parser.y" /* yacc.c:1257 */ +#line 249 "src/wast-parser.y" /* yacc.c:1257 */ { delete ((*yyvaluep).script); } -#line 2135 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ +#line 2141 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1257 */ break; @@ -2423,18 +2429,18 @@ yyreduce: switch (yyn) { case 2: -#line 260 "src/wast-parser.y" /* yacc.c:1646 */ +#line 266 "src/wast-parser.y" /* yacc.c:1646 */ { TextListNode* node = new TextListNode(); DUPTEXT(node->text, (yyvsp[0].text)); node->next = nullptr; (yyval.text_list).first = (yyval.text_list).last = node; } -#line 2434 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2440 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 3: -#line 266 "src/wast-parser.y" /* yacc.c:1646 */ +#line 272 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.text_list) = (yyvsp[-1].text_list); TextListNode* node = new TextListNode(); @@ -2443,17 +2449,17 @@ yyreduce: (yyval.text_list).last->next = node; (yyval.text_list).last = node; } -#line 2447 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2453 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 4: -#line 276 "src/wast-parser.y" /* yacc.c:1646 */ +#line 282 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.text_list).first = (yyval.text_list).last = nullptr; } -#line 2453 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2459 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 6: -#line 281 "src/wast-parser.y" /* yacc.c:1646 */ +#line 287 "src/wast-parser.y" /* yacc.c:1646 */ { TextListNode node; node.text = (yyvsp[0].text); @@ -2467,139 +2473,139 @@ yyreduce: (yyval.text).start = data; (yyval.text).length = size; } -#line 2471 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2477 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 7: -#line 299 "src/wast-parser.y" /* yacc.c:1646 */ +#line 305 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.types) = new TypeVector(); } -#line 2477 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2483 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 8: -#line 300 "src/wast-parser.y" /* yacc.c:1646 */ +#line 306 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.types) = (yyvsp[-1].types); (yyval.types)->push_back((yyvsp[0].type)); } -#line 2486 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2492 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 9: -#line 306 "src/wast-parser.y" /* yacc.c:1646 */ +#line 312 "src/wast-parser.y" /* yacc.c:1646 */ {} -#line 2492 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2498 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 10: -#line 309 "src/wast-parser.y" /* yacc.c:1646 */ +#line 315 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.global) = new Global(); (yyval.global)->type = (yyvsp[0].type); (yyval.global)->mutable_ = false; } -#line 2502 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2508 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 11: -#line 314 "src/wast-parser.y" /* yacc.c:1646 */ +#line 320 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.global) = new Global(); (yyval.global)->type = (yyvsp[-1].type); (yyval.global)->mutable_ = true; } -#line 2512 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2518 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 12: -#line 322 "src/wast-parser.y" /* yacc.c:1646 */ +#line 328 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func_sig) = (yyvsp[-1].func_sig); } -#line 2518 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2524 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 14: -#line 327 "src/wast-parser.y" /* yacc.c:1646 */ +#line 333 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func_sig) = (yyvsp[0].func_sig); (yyval.func_sig)->param_types.insert((yyval.func_sig)->param_types.begin(), (yyvsp[-2].types)->begin(), (yyvsp[-2].types)->end()); delete (yyvsp[-2].types); } -#line 2528 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2534 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 15: -#line 332 "src/wast-parser.y" /* yacc.c:1646 */ +#line 338 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func_sig) = (yyvsp[0].func_sig); (yyval.func_sig)->param_types.insert((yyval.func_sig)->param_types.begin(), (yyvsp[-2].type)); // Ignore bind_var. destroy_string_slice(&(yyvsp[-3].text)); } -#line 2539 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2545 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 16: -#line 341 "src/wast-parser.y" /* yacc.c:1646 */ +#line 347 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func_sig) = new FuncSignature(); } -#line 2545 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2551 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 17: -#line 342 "src/wast-parser.y" /* yacc.c:1646 */ +#line 348 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func_sig) = (yyvsp[0].func_sig); (yyval.func_sig)->result_types.insert((yyval.func_sig)->result_types.begin(), (yyvsp[-2].types)->begin(), (yyvsp[-2].types)->end()); delete (yyvsp[-2].types); } -#line 2555 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2561 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 18: -#line 350 "src/wast-parser.y" /* yacc.c:1646 */ +#line 356 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.table) = new Table(); (yyval.table)->elem_limits = (yyvsp[-1].limits); } -#line 2564 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2570 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 19: -#line 356 "src/wast-parser.y" /* yacc.c:1646 */ +#line 362 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.memory) = new Memory(); (yyval.memory)->page_limits = (yyvsp[0].limits); } -#line 2573 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2579 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 20: -#line 362 "src/wast-parser.y" /* yacc.c:1646 */ +#line 368 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.limits).has_max = false; (yyval.limits).initial = (yyvsp[0].u64); (yyval.limits).max = 0; } -#line 2583 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2589 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 21: -#line 367 "src/wast-parser.y" /* yacc.c:1646 */ +#line 373 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.limits).has_max = true; (yyval.limits).initial = (yyvsp[-1].u64); (yyval.limits).max = (yyvsp[0].u64); } -#line 2593 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2599 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 22: -#line 374 "src/wast-parser.y" /* yacc.c:1646 */ +#line 380 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.var) = (yyvsp[-1].var); } -#line 2599 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2605 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 23: -#line 380 "src/wast-parser.y" /* yacc.c:1646 */ +#line 386 "src/wast-parser.y" /* yacc.c:1646 */ { if (Failed(parse_uint64((yyvsp[0].literal).text.start, (yyvsp[0].literal).text.start + (yyvsp[0].literal).text.length, &(yyval.u64)))) { @@ -2608,98 +2614,98 @@ yyreduce: WABT_PRINTF_STRING_SLICE_ARG((yyvsp[0].literal).text)); } } -#line 2612 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2618 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 24: -#line 391 "src/wast-parser.y" /* yacc.c:1646 */ +#line 397 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.literal).type = (yyvsp[0].literal).type; DUPTEXT((yyval.literal).text, (yyvsp[0].literal).text); } -#line 2621 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2627 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 25: -#line 395 "src/wast-parser.y" /* yacc.c:1646 */ +#line 401 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.literal).type = (yyvsp[0].literal).type; DUPTEXT((yyval.literal).text, (yyvsp[0].literal).text); } -#line 2630 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2636 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 26: -#line 399 "src/wast-parser.y" /* yacc.c:1646 */ +#line 405 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.literal).type = (yyvsp[0].literal).type; DUPTEXT((yyval.literal).text, (yyvsp[0].literal).text); } -#line 2639 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2645 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 27: -#line 406 "src/wast-parser.y" /* yacc.c:1646 */ +#line 412 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.var) = new Var((yyvsp[0].u64)); (yyval.var)->loc = (yylsp[0]); } -#line 2648 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2654 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 28: -#line 410 "src/wast-parser.y" /* yacc.c:1646 */ +#line 416 "src/wast-parser.y" /* yacc.c:1646 */ { StringSlice name; DUPTEXT(name, (yyvsp[0].text)); (yyval.var) = new Var(name); (yyval.var)->loc = (yylsp[0]); } -#line 2659 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2665 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 29: -#line 418 "src/wast-parser.y" /* yacc.c:1646 */ +#line 424 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.vars) = new VarVector(); } -#line 2665 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2671 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 30: -#line 419 "src/wast-parser.y" /* yacc.c:1646 */ +#line 425 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.vars) = (yyvsp[-1].vars); (yyval.vars)->emplace_back(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2675 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2681 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 31: -#line 426 "src/wast-parser.y" /* yacc.c:1646 */ +#line 432 "src/wast-parser.y" /* yacc.c:1646 */ { ZeroMemory((yyval.text)); } -#line 2681 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2687 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 33: -#line 430 "src/wast-parser.y" /* yacc.c:1646 */ +#line 436 "src/wast-parser.y" /* yacc.c:1646 */ { DUPTEXT((yyval.text), (yyvsp[0].text)); } -#line 2687 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2693 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 34: -#line 434 "src/wast-parser.y" /* yacc.c:1646 */ +#line 440 "src/wast-parser.y" /* yacc.c:1646 */ { ZeroMemory((yyval.text)); } -#line 2693 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2699 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 36: -#line 439 "src/wast-parser.y" /* yacc.c:1646 */ +#line 445 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.u64) = 0; } -#line 2699 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2705 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 37: -#line 440 "src/wast-parser.y" /* yacc.c:1646 */ +#line 446 "src/wast-parser.y" /* yacc.c:1646 */ { uint64_t offset64; if (Failed(parse_int64((yyvsp[0].text).start, (yyvsp[0].text).start + (yyvsp[0].text).length, &offset64, @@ -2714,17 +2720,17 @@ yyreduce: } (yyval.u64) = static_cast<uint32_t>(offset64); } -#line 2718 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2724 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 38: -#line 456 "src/wast-parser.y" /* yacc.c:1646 */ +#line 462 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.u32) = USE_NATURAL_ALIGNMENT; } -#line 2724 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2730 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 39: -#line 457 "src/wast-parser.y" /* yacc.c:1646 */ +#line 463 "src/wast-parser.y" /* yacc.c:1646 */ { if (Failed(parse_int32((yyvsp[0].text).start, (yyvsp[0].text).start + (yyvsp[0].text).length, &(yyval.u32), ParseIntType::UnsignedOnly))) { @@ -2737,175 +2743,175 @@ yyreduce: wast_parser_error(&(yylsp[0]), lexer, parser, "alignment must be power-of-two"); } } -#line 2741 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2747 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 40: -#line 472 "src/wast-parser.y" /* yacc.c:1646 */ +#line 478 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = new ExprList((yyvsp[0].expr)); (yyval.expr_list)->back().loc = (yylsp[0]); } -#line 2750 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2756 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 41: -#line 476 "src/wast-parser.y" /* yacc.c:1646 */ +#line 482 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = new ExprList((yyvsp[0].expr)); (yyval.expr_list)->back().loc = (yylsp[0]); } -#line 2759 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2765 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 43: -#line 484 "src/wast-parser.y" /* yacc.c:1646 */ +#line 490 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new UnreachableExpr(); } -#line 2767 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2773 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 44: -#line 487 "src/wast-parser.y" /* yacc.c:1646 */ +#line 493 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new NopExpr(); } -#line 2775 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2781 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 45: -#line 490 "src/wast-parser.y" /* yacc.c:1646 */ +#line 496 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new DropExpr(); } -#line 2783 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2789 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 46: -#line 493 "src/wast-parser.y" /* yacc.c:1646 */ +#line 499 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new SelectExpr(); } -#line 2791 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2797 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 47: -#line 496 "src/wast-parser.y" /* yacc.c:1646 */ +#line 502 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new BrExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2800 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2806 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 48: -#line 500 "src/wast-parser.y" /* yacc.c:1646 */ +#line 506 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new BrIfExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2809 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2815 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 49: -#line 504 "src/wast-parser.y" /* yacc.c:1646 */ +#line 510 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new BrTableExpr((yyvsp[-1].vars), std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2818 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2824 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 50: -#line 508 "src/wast-parser.y" /* yacc.c:1646 */ +#line 514 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new ReturnExpr(); } -#line 2826 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2832 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 51: -#line 511 "src/wast-parser.y" /* yacc.c:1646 */ +#line 517 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new CallExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2835 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2841 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 52: -#line 515 "src/wast-parser.y" /* yacc.c:1646 */ +#line 521 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new CallIndirectExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2844 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2850 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 53: -#line 519 "src/wast-parser.y" /* yacc.c:1646 */ +#line 525 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new GetLocalExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2853 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2859 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 54: -#line 523 "src/wast-parser.y" /* yacc.c:1646 */ +#line 529 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new SetLocalExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2862 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2868 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 55: -#line 527 "src/wast-parser.y" /* yacc.c:1646 */ +#line 533 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new TeeLocalExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2871 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2877 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 56: -#line 531 "src/wast-parser.y" /* yacc.c:1646 */ +#line 537 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new GetGlobalExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2880 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2886 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 57: -#line 535 "src/wast-parser.y" /* yacc.c:1646 */ +#line 541 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new SetGlobalExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2889 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2895 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 58: -#line 539 "src/wast-parser.y" /* yacc.c:1646 */ +#line 545 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new LoadExpr((yyvsp[-2].opcode), (yyvsp[0].u32), (yyvsp[-1].u64)); } -#line 2897 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2903 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 59: -#line 542 "src/wast-parser.y" /* yacc.c:1646 */ +#line 548 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new StoreExpr((yyvsp[-2].opcode), (yyvsp[0].u32), (yyvsp[-1].u64)); } -#line 2905 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2911 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 60: -#line 545 "src/wast-parser.y" /* yacc.c:1646 */ +#line 551 "src/wast-parser.y" /* yacc.c:1646 */ { Const const_; const_.loc = (yylsp[-1]); @@ -2918,110 +2924,110 @@ yyreduce: delete [] (yyvsp[0].literal).text.start; (yyval.expr) = new ConstExpr(const_); } -#line 2922 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2928 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 61: -#line 557 "src/wast-parser.y" /* yacc.c:1646 */ +#line 563 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new UnaryExpr((yyvsp[0].opcode)); } -#line 2930 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2936 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 62: -#line 560 "src/wast-parser.y" /* yacc.c:1646 */ +#line 566 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new BinaryExpr((yyvsp[0].opcode)); } -#line 2938 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2944 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 63: -#line 563 "src/wast-parser.y" /* yacc.c:1646 */ +#line 569 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new CompareExpr((yyvsp[0].opcode)); } -#line 2946 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2952 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 64: -#line 566 "src/wast-parser.y" /* yacc.c:1646 */ +#line 572 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new ConvertExpr((yyvsp[0].opcode)); } -#line 2954 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2960 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 65: -#line 569 "src/wast-parser.y" /* yacc.c:1646 */ +#line 575 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new CurrentMemoryExpr(); } -#line 2962 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2968 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 66: -#line 572 "src/wast-parser.y" /* yacc.c:1646 */ +#line 578 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new GrowMemoryExpr(); } -#line 2970 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2976 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 67: -#line 575 "src/wast-parser.y" /* yacc.c:1646 */ +#line 581 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new ThrowExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2979 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2985 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 68: -#line 579 "src/wast-parser.y" /* yacc.c:1646 */ +#line 585 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr) = new RethrowExpr(std::move(*(yyvsp[0].var))); delete (yyvsp[0].var); } -#line 2988 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 2994 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 69: -#line 586 "src/wast-parser.y" /* yacc.c:1646 */ +#line 592 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new BlockExpr((yyvsp[-2].block)); expr->block->label = (yyvsp[-3].text); CHECK_END_LABEL((yylsp[0]), expr->block->label, (yyvsp[0].text)); (yyval.expr) = expr; } -#line 2999 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3005 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 70: -#line 592 "src/wast-parser.y" /* yacc.c:1646 */ +#line 598 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new LoopExpr((yyvsp[-2].block)); expr->block->label = (yyvsp[-3].text); CHECK_END_LABEL((yylsp[0]), expr->block->label, (yyvsp[0].text)); (yyval.expr) = expr; } -#line 3010 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3016 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 71: -#line 598 "src/wast-parser.y" /* yacc.c:1646 */ +#line 604 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new IfExpr((yyvsp[-2].block)); expr->true_->label = (yyvsp[-3].text); CHECK_END_LABEL((yylsp[0]), expr->true_->label, (yyvsp[0].text)); (yyval.expr) = expr; } -#line 3021 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3027 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 72: -#line 604 "src/wast-parser.y" /* yacc.c:1646 */ +#line 610 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new IfExpr((yyvsp[-5].block), std::move(*(yyvsp[-2].expr_list))); delete (yyvsp[-2].expr_list); @@ -3030,157 +3036,157 @@ yyreduce: CHECK_END_LABEL((yylsp[0]), expr->true_->label, (yyvsp[0].text)); (yyval.expr) = expr; } -#line 3034 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3040 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 73: -#line 612 "src/wast-parser.y" /* yacc.c:1646 */ +#line 618 "src/wast-parser.y" /* yacc.c:1646 */ { (yyvsp[-3].block)->label = (yyvsp[-4].text); (yyval.expr) = (yyvsp[-2].try_expr); cast<TryExpr>((yyval.expr))->block = (yyvsp[-3].block); CHECK_END_LABEL((yylsp[0]), (yyvsp[-3].block)->label, (yyvsp[0].text)); } -#line 3045 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3051 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 74: -#line 621 "src/wast-parser.y" /* yacc.c:1646 */ +#line 627 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.types) = (yyvsp[-1].types); } -#line 3051 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3057 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 75: -#line 624 "src/wast-parser.y" /* yacc.c:1646 */ +#line 630 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.block) = (yyvsp[0].block); (yyval.block)->sig.insert((yyval.block)->sig.end(), (yyvsp[-1].types)->begin(), (yyvsp[-1].types)->end()); delete (yyvsp[-1].types); } -#line 3061 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3067 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 76: -#line 629 "src/wast-parser.y" /* yacc.c:1646 */ +#line 635 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.block) = new Block(std::move(*(yyvsp[0].expr_list))); delete (yyvsp[0].expr_list); } -#line 3070 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3076 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 77: -#line 636 "src/wast-parser.y" /* yacc.c:1646 */ +#line 642 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.catch_) = new Catch(std::move(*(yyvsp[-1].var)), std::move(*(yyvsp[0].expr_list))); delete (yyvsp[-1].var); delete (yyvsp[0].expr_list); (yyval.catch_)->loc = (yylsp[-2]); } -#line 3081 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3087 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 78: -#line 644 "src/wast-parser.y" /* yacc.c:1646 */ +#line 650 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.catch_) = new Catch(std::move(*(yyvsp[0].expr_list))); delete (yyvsp[0].expr_list); (yyval.catch_)->loc = (yylsp[-1]); } -#line 3091 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3097 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 81: -#line 657 "src/wast-parser.y" /* yacc.c:1646 */ +#line 663 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new TryExpr(); expr->catches.push_back((yyvsp[0].catch_)); (yyval.try_expr) = expr; } -#line 3101 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3107 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 82: -#line 662 "src/wast-parser.y" /* yacc.c:1646 */ +#line 668 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.try_expr) = (yyvsp[-1].try_expr); cast<TryExpr>((yyval.try_expr))->catches.push_back((yyvsp[0].catch_)); } -#line 3110 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3116 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 83: -#line 669 "src/wast-parser.y" /* yacc.c:1646 */ +#line 675 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = (yyvsp[-1].expr_list); } -#line 3116 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3122 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 84: -#line 673 "src/wast-parser.y" /* yacc.c:1646 */ +#line 679 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = (yyvsp[0].expr_list); (yyval.expr_list)->push_back((yyvsp[-1].expr)); (yyvsp[-1].expr)->loc = (yylsp[-1]); } -#line 3126 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3132 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 85: -#line 678 "src/wast-parser.y" /* yacc.c:1646 */ +#line 684 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new BlockExpr((yyvsp[0].block)); expr->block->label = (yyvsp[-1].text); expr->loc = (yylsp[-2]); (yyval.expr_list) = new ExprList(expr); } -#line 3137 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3143 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 86: -#line 684 "src/wast-parser.y" /* yacc.c:1646 */ +#line 690 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new LoopExpr((yyvsp[0].block)); expr->block->label = (yyvsp[-1].text); expr->loc = (yylsp[-2]); (yyval.expr_list) = new ExprList(expr); } -#line 3148 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3154 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 87: -#line 690 "src/wast-parser.y" /* yacc.c:1646 */ +#line 696 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = (yyvsp[0].expr_list); IfExpr* if_ = cast<IfExpr>(&(yyvsp[0].expr_list)->back()); if_->true_->label = (yyvsp[-1].text); } -#line 3158 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3164 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 88: -#line 695 "src/wast-parser.y" /* yacc.c:1646 */ +#line 701 "src/wast-parser.y" /* yacc.c:1646 */ { Block* block = (yyvsp[0].try_expr)->block; block->label = (yyvsp[-1].text); (yyvsp[0].try_expr)->loc = (yylsp[-2]); (yyval.expr_list) = new ExprList((yyvsp[0].try_expr)); } -#line 3169 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3175 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 89: -#line 704 "src/wast-parser.y" /* yacc.c:1646 */ +#line 710 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.try_expr) = (yyvsp[0].try_expr); Block* block = (yyval.try_expr)->block; block->sig.insert(block->sig.end(), (yyvsp[-1].types)->begin(), (yyvsp[-1].types)->end()); delete (yyvsp[-1].types); } -#line 3180 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3186 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 90: -#line 710 "src/wast-parser.y" /* yacc.c:1646 */ +#line 716 "src/wast-parser.y" /* yacc.c:1646 */ { Block* block = new Block(); block->exprs = std::move(*(yyvsp[-1].expr_list)); @@ -3188,46 +3194,46 @@ yyreduce: (yyval.try_expr) = (yyvsp[0].try_expr); (yyval.try_expr)->block = block; } -#line 3192 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3198 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 91: -#line 720 "src/wast-parser.y" /* yacc.c:1646 */ +#line 726 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.catch_) = (yyvsp[-1].catch_); } -#line 3200 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3206 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 92: -#line 723 "src/wast-parser.y" /* yacc.c:1646 */ +#line 729 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.catch_) = (yyvsp[-1].catch_); } -#line 3208 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3214 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 93: -#line 729 "src/wast-parser.y" /* yacc.c:1646 */ +#line 735 "src/wast-parser.y" /* yacc.c:1646 */ { auto expr = new TryExpr(); expr->catches.push_back((yyvsp[0].catch_)); (yyval.try_expr) = expr; } -#line 3218 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3224 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 94: -#line 734 "src/wast-parser.y" /* yacc.c:1646 */ +#line 740 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.try_expr) = (yyvsp[-1].try_expr); cast<TryExpr>((yyval.try_expr))->catches.push_back((yyvsp[0].catch_)); } -#line 3227 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3233 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 95: -#line 742 "src/wast-parser.y" /* yacc.c:1646 */ +#line 748 "src/wast-parser.y" /* yacc.c:1646 */ { IfExpr* if_ = cast<IfExpr>(&(yyvsp[0].expr_list)->back()); (yyval.expr_list) = (yyvsp[0].expr_list); @@ -3235,11 +3241,11 @@ yyreduce: true_->sig.insert(true_->sig.end(), (yyvsp[-1].types)->begin(), (yyvsp[-1].types)->end()); delete (yyvsp[-1].types); } -#line 3239 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3245 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 97: -#line 752 "src/wast-parser.y" /* yacc.c:1646 */ +#line 758 "src/wast-parser.y" /* yacc.c:1646 */ { Expr* expr = new IfExpr(new Block(std::move(*(yyvsp[-5].expr_list))), std::move(*(yyvsp[-1].expr_list))); delete (yyvsp[-5].expr_list); @@ -3247,22 +3253,22 @@ yyreduce: expr->loc = (yylsp[-7]); (yyval.expr_list) = new ExprList(expr); } -#line 3251 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3257 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 98: -#line 759 "src/wast-parser.y" /* yacc.c:1646 */ +#line 765 "src/wast-parser.y" /* yacc.c:1646 */ { Expr* expr = new IfExpr(new Block(std::move(*(yyvsp[-1].expr_list)))); delete (yyvsp[-1].expr_list); expr->loc = (yylsp[-3]); (yyval.expr_list) = new ExprList(expr); } -#line 3262 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3268 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 99: -#line 765 "src/wast-parser.y" /* yacc.c:1646 */ +#line 771 "src/wast-parser.y" /* yacc.c:1646 */ { Expr* expr = new IfExpr(new Block(std::move(*(yyvsp[-5].expr_list))), std::move(*(yyvsp[-1].expr_list))); delete (yyvsp[-5].expr_list); @@ -3271,11 +3277,11 @@ yyreduce: (yyval.expr_list) = (yyvsp[-8].expr_list); (yyval.expr_list)->push_back(expr); } -#line 3275 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3281 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 100: -#line 773 "src/wast-parser.y" /* yacc.c:1646 */ +#line 779 "src/wast-parser.y" /* yacc.c:1646 */ { Expr* expr = new IfExpr(new Block(std::move(*(yyvsp[-1].expr_list)))); delete (yyvsp[-1].expr_list); @@ -3283,11 +3289,11 @@ yyreduce: (yyval.expr_list) = (yyvsp[-4].expr_list); (yyval.expr_list)->push_back(expr); } -#line 3287 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3293 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 101: -#line 780 "src/wast-parser.y" /* yacc.c:1646 */ +#line 786 "src/wast-parser.y" /* yacc.c:1646 */ { Expr* expr = new IfExpr(new Block(std::move(*(yyvsp[-1].expr_list))), std::move(*(yyvsp[0].expr_list))); delete (yyvsp[-1].expr_list); @@ -3296,11 +3302,11 @@ yyreduce: (yyval.expr_list) = (yyvsp[-2].expr_list); (yyval.expr_list)->push_back(expr); } -#line 3300 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3306 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 102: -#line 788 "src/wast-parser.y" /* yacc.c:1646 */ +#line 794 "src/wast-parser.y" /* yacc.c:1646 */ { Expr* expr = new IfExpr(new Block(std::move(*(yyvsp[0].expr_list)))); delete (yyvsp[0].expr_list); @@ -3308,84 +3314,84 @@ yyreduce: (yyval.expr_list) = (yyvsp[-1].expr_list); (yyval.expr_list)->push_back(expr); } -#line 3312 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3318 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 103: -#line 798 "src/wast-parser.y" /* yacc.c:1646 */ +#line 804 "src/wast-parser.y" /* yacc.c:1646 */ { CHECK_ALLOW_EXCEPTIONS(&(yylsp[0]), "rethrow"); } -#line 3320 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3326 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 104: -#line 803 "src/wast-parser.y" /* yacc.c:1646 */ +#line 809 "src/wast-parser.y" /* yacc.c:1646 */ { CHECK_ALLOW_EXCEPTIONS(&(yylsp[0]), "throw"); } -#line 3328 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3334 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 105: -#line 809 "src/wast-parser.y" /* yacc.c:1646 */ +#line 815 "src/wast-parser.y" /* yacc.c:1646 */ { CHECK_ALLOW_EXCEPTIONS(&(yylsp[0]), "try"); } -#line 3336 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3342 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 106: -#line 815 "src/wast-parser.y" /* yacc.c:1646 */ +#line 821 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = new ExprList(); } -#line 3342 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3348 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 107: -#line 816 "src/wast-parser.y" /* yacc.c:1646 */ +#line 822 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = (yyvsp[0].expr_list); (yyval.expr_list)->splice((yyval.expr_list)->begin(), std::move(*(yyvsp[-1].expr_list))); delete (yyvsp[-1].expr_list); } -#line 3352 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3358 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 108: -#line 823 "src/wast-parser.y" /* yacc.c:1646 */ +#line 829 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = new ExprList(); } -#line 3358 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3364 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 109: -#line 824 "src/wast-parser.y" /* yacc.c:1646 */ +#line 830 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = (yyvsp[0].expr_list); (yyval.expr_list)->splice((yyval.expr_list)->begin(), std::move(*(yyvsp[-1].expr_list))); delete (yyvsp[-1].expr_list); } -#line 3368 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3374 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 111: -#line 836 "src/wast-parser.y" /* yacc.c:1646 */ +#line 842 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.exception) = new Exception((yyvsp[-2].text), *(yyvsp[-1].types)); delete (yyvsp[-1].types); } -#line 3377 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3383 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 112: -#line 842 "src/wast-parser.y" /* yacc.c:1646 */ +#line 848 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_field) = new ExceptionModuleField((yyvsp[0].exception)); } -#line 3385 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3391 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 113: -#line 849 "src/wast-parser.y" /* yacc.c:1646 */ +#line 855 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = (yyvsp[-1].module_fields); ModuleField* main_field = &(yyval.module_fields)->front(); @@ -3396,11 +3402,11 @@ yyreduce: cast<ImportModuleField>(main_field)->import->func->name = (yyvsp[-2].text); } } -#line 3400 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3406 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 114: -#line 862 "src/wast-parser.y" /* yacc.c:1646 */ +#line 868 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new FuncModuleField((yyvsp[0].func)); field->func->decl.has_func_type = true; @@ -3408,19 +3414,19 @@ yyreduce: delete (yyvsp[-1].var); (yyval.module_fields) = new ModuleFieldList(field); } -#line 3412 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3418 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 115: -#line 869 "src/wast-parser.y" /* yacc.c:1646 */ +#line 875 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList(new FuncModuleField((yyvsp[0].func))); } -#line 3420 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3426 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 116: -#line 872 "src/wast-parser.y" /* yacc.c:1646 */ +#line 878 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ImportModuleField((yyvsp[-2].import), (yylsp[-2])); field->import->kind = ExternalKind::Func; @@ -3430,53 +3436,53 @@ yyreduce: delete (yyvsp[-1].var); (yyval.module_fields) = new ModuleFieldList(field); } -#line 3434 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3440 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 117: -#line 881 "src/wast-parser.y" /* yacc.c:1646 */ +#line 887 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ImportModuleField((yyvsp[-1].import), (yylsp[-1])); field->import->kind = ExternalKind::Func; field->import->func = (yyvsp[0].func); (yyval.module_fields) = new ModuleFieldList(field); } -#line 3445 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3451 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 118: -#line 887 "src/wast-parser.y" /* yacc.c:1646 */ +#line 893 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ExportModuleField((yyvsp[-1].export_), (yylsp[-1])); field->export_->kind = ExternalKind::Func; (yyval.module_fields) = (yyvsp[0].module_fields); (yyval.module_fields)->push_back(field); } -#line 3456 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3462 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 119: -#line 896 "src/wast-parser.y" /* yacc.c:1646 */ +#line 902 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); reverse_bindings(&(yyval.func)->decl.sig.param_types, &(yyval.func)->param_bindings); } -#line 3465 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3471 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 121: -#line 904 "src/wast-parser.y" /* yacc.c:1646 */ +#line 910 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->decl.sig.param_types.insert((yyval.func)->decl.sig.param_types.begin(), (yyvsp[-2].types)->begin(), (yyvsp[-2].types)->end()); delete (yyvsp[-2].types); } -#line 3476 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3482 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 122: -#line 910 "src/wast-parser.y" /* yacc.c:1646 */ +#line 916 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->param_bindings.emplace(string_slice_to_string((yyvsp[-3].text)), @@ -3484,48 +3490,48 @@ yyreduce: destroy_string_slice(&(yyvsp[-3].text)); (yyval.func)->decl.sig.param_types.insert((yyval.func)->decl.sig.param_types.begin(), (yyvsp[-2].type)); } -#line 3488 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3494 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 123: -#line 920 "src/wast-parser.y" /* yacc.c:1646 */ +#line 926 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = new Func(); } -#line 3494 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3500 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 124: -#line 921 "src/wast-parser.y" /* yacc.c:1646 */ +#line 927 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->decl.sig.result_types.insert((yyval.func)->decl.sig.result_types.begin(), (yyvsp[-2].types)->begin(), (yyvsp[-2].types)->end()); delete (yyvsp[-2].types); } -#line 3505 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3511 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 125: -#line 930 "src/wast-parser.y" /* yacc.c:1646 */ +#line 936 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); reverse_bindings(&(yyval.func)->decl.sig.param_types, &(yyval.func)->param_bindings); } -#line 3514 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3520 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 127: -#line 938 "src/wast-parser.y" /* yacc.c:1646 */ +#line 944 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->decl.sig.param_types.insert((yyval.func)->decl.sig.param_types.begin(), (yyvsp[-2].types)->begin(), (yyvsp[-2].types)->end()); delete (yyvsp[-2].types); } -#line 3525 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3531 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 128: -#line 944 "src/wast-parser.y" /* yacc.c:1646 */ +#line 950 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->param_bindings.emplace(string_slice_to_string((yyvsp[-3].text)), @@ -3533,51 +3539,51 @@ yyreduce: destroy_string_slice(&(yyvsp[-3].text)); (yyval.func)->decl.sig.param_types.insert((yyval.func)->decl.sig.param_types.begin(), (yyvsp[-2].type)); } -#line 3537 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3543 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 130: -#line 955 "src/wast-parser.y" /* yacc.c:1646 */ +#line 961 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->decl.sig.result_types.insert((yyval.func)->decl.sig.result_types.begin(), (yyvsp[-2].types)->begin(), (yyvsp[-2].types)->end()); delete (yyvsp[-2].types); } -#line 3548 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3554 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 131: -#line 964 "src/wast-parser.y" /* yacc.c:1646 */ +#line 970 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); reverse_bindings(&(yyval.func)->local_types, &(yyval.func)->local_bindings); } -#line 3557 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3563 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 132: -#line 971 "src/wast-parser.y" /* yacc.c:1646 */ +#line 977 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = new Func(); (yyval.func)->exprs = std::move(*(yyvsp[0].expr_list)); delete (yyvsp[0].expr_list); } -#line 3567 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3573 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 133: -#line 976 "src/wast-parser.y" /* yacc.c:1646 */ +#line 982 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->local_types.insert((yyval.func)->local_types.begin(), (yyvsp[-2].types)->begin(), (yyvsp[-2].types)->end()); delete (yyvsp[-2].types); } -#line 3577 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3583 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 134: -#line 981 "src/wast-parser.y" /* yacc.c:1646 */ +#line 987 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.func) = (yyvsp[0].func); (yyval.func)->local_bindings.emplace(string_slice_to_string((yyvsp[-3].text)), @@ -3585,19 +3591,19 @@ yyreduce: destroy_string_slice(&(yyvsp[-3].text)); (yyval.func)->local_types.insert((yyval.func)->local_types.begin(), (yyvsp[-2].type)); } -#line 3589 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3595 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 135: -#line 993 "src/wast-parser.y" /* yacc.c:1646 */ +#line 999 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.expr_list) = (yyvsp[-1].expr_list); } -#line 3597 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3603 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 137: -#line 1000 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1006 "src/wast-parser.y" /* yacc.c:1646 */ { auto elem_segment = new ElemSegment(); elem_segment->table_var = std::move(*(yyvsp[-3].var)); @@ -3608,11 +3614,11 @@ yyreduce: delete (yyvsp[-1].vars); (yyval.module_field) = new ElemSegmentModuleField(elem_segment, (yylsp[-4])); } -#line 3612 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3618 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 138: -#line 1010 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1016 "src/wast-parser.y" /* yacc.c:1646 */ { auto elem_segment = new ElemSegment(); elem_segment->table_var.loc = (yylsp[-3]); @@ -3624,11 +3630,11 @@ yyreduce: delete (yyvsp[-1].vars); (yyval.module_field) = new ElemSegmentModuleField(elem_segment, (yylsp[-3])); } -#line 3628 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3634 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 139: -#line 1024 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1030 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = (yyvsp[-1].module_fields); ModuleField* main_field = &(yyval.module_fields)->front(); @@ -3639,41 +3645,41 @@ yyreduce: cast<ImportModuleField>(main_field)->import->table->name = (yyvsp[-2].text); } } -#line 3643 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3649 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 140: -#line 1037 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1043 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList(new TableModuleField((yyvsp[0].table))); } -#line 3651 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3657 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 141: -#line 1040 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1046 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ImportModuleField((yyvsp[-1].import)); field->import->kind = ExternalKind::Table; field->import->table = (yyvsp[0].table); (yyval.module_fields) = new ModuleFieldList(field); } -#line 3662 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3668 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 142: -#line 1046 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1052 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ExportModuleField((yyvsp[-1].export_), (yylsp[-1])); field->export_->kind = ExternalKind::Table; (yyval.module_fields) = (yyvsp[0].module_fields); (yyval.module_fields)->push_back(field); } -#line 3673 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3679 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 143: -#line 1052 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1058 "src/wast-parser.y" /* yacc.c:1646 */ { auto table = new Table(); table->elem_limits.initial = (yyvsp[-1].vars)->size(); @@ -3691,11 +3697,11 @@ yyreduce: (yyval.module_fields)->push_back(new TableModuleField(table)); (yyval.module_fields)->push_back(new ElemSegmentModuleField(elem_segment, (yylsp[-2]))); } -#line 3695 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3701 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 144: -#line 1072 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1078 "src/wast-parser.y" /* yacc.c:1646 */ { auto data_segment = new DataSegment(); data_segment->memory_var = std::move(*(yyvsp[-3].var)); @@ -3706,11 +3712,11 @@ yyreduce: destroy_text_list(&(yyvsp[-1].text_list)); (yyval.module_field) = new DataSegmentModuleField(data_segment, (yylsp[-4])); } -#line 3710 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3716 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 145: -#line 1082 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1088 "src/wast-parser.y" /* yacc.c:1646 */ { auto data_segment = new DataSegment(); data_segment->memory_var.loc = (yylsp[-3]); @@ -3722,11 +3728,11 @@ yyreduce: destroy_text_list(&(yyvsp[-1].text_list)); (yyval.module_field) = new DataSegmentModuleField(data_segment, (yylsp[-3])); } -#line 3726 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3732 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 146: -#line 1096 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1102 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = (yyvsp[-1].module_fields); ModuleField* main_field = &(yyval.module_fields)->front(); @@ -3737,41 +3743,41 @@ yyreduce: cast<ImportModuleField>(main_field)->import->memory->name = (yyvsp[-2].text); } } -#line 3741 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3747 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 147: -#line 1109 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1115 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList(new MemoryModuleField((yyvsp[0].memory))); } -#line 3749 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3755 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 148: -#line 1112 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1118 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ImportModuleField((yyvsp[-1].import)); field->import->kind = ExternalKind::Memory; field->import->memory = (yyvsp[0].memory); (yyval.module_fields) = new ModuleFieldList(field); } -#line 3760 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3766 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 149: -#line 1118 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1124 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ExportModuleField((yyvsp[-1].export_), (yylsp[-1])); field->export_->kind = ExternalKind::Memory; (yyval.module_fields) = (yyvsp[0].module_fields); (yyval.module_fields)->push_back(field); } -#line 3771 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3777 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 150: -#line 1124 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1130 "src/wast-parser.y" /* yacc.c:1646 */ { auto data_segment = new DataSegment(); data_segment->memory_var = Var(kInvalidIndex); @@ -3792,11 +3798,11 @@ yyreduce: (yyval.module_fields)->push_back(new MemoryModuleField(memory)); (yyval.module_fields)->push_back(new DataSegmentModuleField(data_segment, (yylsp[-2]))); } -#line 3796 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3802 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 151: -#line 1147 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1153 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = (yyvsp[-1].module_fields); ModuleField* main_field = &(yyval.module_fields)->front(); @@ -3807,44 +3813,44 @@ yyreduce: cast<ImportModuleField>(main_field)->import->global->name = (yyvsp[-2].text); } } -#line 3811 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3817 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 152: -#line 1160 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1166 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new GlobalModuleField((yyvsp[-1].global)); field->global->init_expr = std::move(*(yyvsp[0].expr_list)); delete (yyvsp[0].expr_list); (yyval.module_fields) = new ModuleFieldList(field); } -#line 3822 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3828 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 153: -#line 1166 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1172 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ImportModuleField((yyvsp[-1].import)); field->import->kind = ExternalKind::Global; field->import->global = (yyvsp[0].global); (yyval.module_fields) = new ModuleFieldList(field); } -#line 3833 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3839 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 154: -#line 1172 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1178 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ExportModuleField((yyvsp[-1].export_), (yylsp[-1])); field->export_->kind = ExternalKind::Global; (yyval.module_fields) = (yyvsp[0].module_fields); (yyval.module_fields)->push_back(field); } -#line 3844 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3850 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 155: -#line 1183 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1189 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.import) = new Import(); (yyval.import)->kind = ExternalKind::Func; @@ -3854,11 +3860,11 @@ yyreduce: (yyval.import)->func->decl.type_var = std::move(*(yyvsp[-1].var)); delete (yyvsp[-1].var); } -#line 3858 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3864 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 156: -#line 1192 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1198 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.import) = new Import(); (yyval.import)->kind = ExternalKind::Func; @@ -3867,160 +3873,160 @@ yyreduce: (yyval.import)->func->decl.sig = std::move(*(yyvsp[-1].func_sig)); delete (yyvsp[-1].func_sig); } -#line 3871 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3877 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 157: -#line 1200 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1206 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.import) = new Import(); (yyval.import)->kind = ExternalKind::Table; (yyval.import)->table = (yyvsp[-1].table); (yyval.import)->table->name = (yyvsp[-2].text); } -#line 3882 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3888 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 158: -#line 1206 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1212 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.import) = new Import(); (yyval.import)->kind = ExternalKind::Memory; (yyval.import)->memory = (yyvsp[-1].memory); (yyval.import)->memory->name = (yyvsp[-2].text); } -#line 3893 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3899 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 159: -#line 1212 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1218 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.import) = new Import(); (yyval.import)->kind = ExternalKind::Global; (yyval.import)->global = (yyvsp[-1].global); (yyval.import)->global->name = (yyvsp[-2].text); } -#line 3904 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3910 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 160: -#line 1218 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1224 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.import) = new Import(); (yyval.import)->kind = ExternalKind::Except; (yyval.import)->except = (yyvsp[0].exception); } -#line 3914 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3920 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 161: -#line 1226 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1232 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ImportModuleField((yyvsp[-1].import), (yylsp[-4])); field->import->module_name = (yyvsp[-3].text); field->import->field_name = (yyvsp[-2].text); (yyval.module_field) = field; } -#line 3925 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3931 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 162: -#line 1235 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1241 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.import) = new Import(); (yyval.import)->module_name = (yyvsp[-2].text); (yyval.import)->field_name = (yyvsp[-1].text); } -#line 3935 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3941 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 163: -#line 1243 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1249 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.export_) = new Export(); (yyval.export_)->kind = ExternalKind::Func; (yyval.export_)->var = std::move(*(yyvsp[-1].var)); delete (yyvsp[-1].var); } -#line 3946 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3952 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 164: -#line 1249 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1255 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.export_) = new Export(); (yyval.export_)->kind = ExternalKind::Table; (yyval.export_)->var = std::move(*(yyvsp[-1].var)); delete (yyvsp[-1].var); } -#line 3957 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3963 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 165: -#line 1255 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1261 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.export_) = new Export(); (yyval.export_)->kind = ExternalKind::Memory; (yyval.export_)->var = std::move(*(yyvsp[-1].var)); delete (yyvsp[-1].var); } -#line 3968 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3974 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 166: -#line 1261 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1267 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.export_) = new Export(); (yyval.export_)->kind = ExternalKind::Global; (yyval.export_)->var = std::move(*(yyvsp[-1].var)); delete (yyvsp[-1].var); } -#line 3979 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3985 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 167: -#line 1267 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1273 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.export_) = new Export(); (yyval.export_)->kind = ExternalKind::Except; (yyval.export_)->var = std::move(*(yyvsp[-1].var)); delete (yyvsp[-1].var); } -#line 3990 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 3996 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 168: -#line 1275 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1281 "src/wast-parser.y" /* yacc.c:1646 */ { auto field = new ExportModuleField((yyvsp[-1].export_), (yylsp[-3])); field->export_->name = (yyvsp[-2].text); (yyval.module_field) = field; } -#line 4000 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4006 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 169: -#line 1283 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1289 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.export_) = new Export(); (yyval.export_)->name = (yyvsp[-1].text); } -#line 4009 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4015 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 170: -#line 1293 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1299 "src/wast-parser.y" /* yacc.c:1646 */ { auto func_type = new FuncType(); func_type->sig = std::move(*(yyvsp[-1].func_sig)); delete (yyvsp[-1].func_sig); (yyval.module_field) = new FuncTypeModuleField(func_type, (yylsp[-2])); } -#line 4020 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4026 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 171: -#line 1299 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1305 "src/wast-parser.y" /* yacc.c:1646 */ { auto func_type = new FuncType(); func_type->name = (yyvsp[-2].text); @@ -4028,90 +4034,90 @@ yyreduce: delete (yyvsp[-1].func_sig); (yyval.module_field) = new FuncTypeModuleField(func_type, (yylsp[-3])); } -#line 4032 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4038 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 172: -#line 1309 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1315 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_field) = new StartModuleField(*(yyvsp[-1].var), (yylsp[-2])); delete (yyvsp[-1].var); } -#line 4041 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4047 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 173: -#line 1316 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1322 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList((yyvsp[0].module_field)); } -#line 4047 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4053 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 178: -#line 1321 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1327 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList((yyvsp[0].module_field)); } -#line 4053 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4059 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 179: -#line 1322 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1328 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList((yyvsp[0].module_field)); } -#line 4059 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4065 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 180: -#line 1323 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1329 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList((yyvsp[0].module_field)); } -#line 4065 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4071 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 181: -#line 1324 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1330 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList((yyvsp[0].module_field)); } -#line 4071 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4077 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 182: -#line 1325 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1331 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList((yyvsp[0].module_field)); } -#line 4077 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4083 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 183: -#line 1326 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1332 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module_fields) = new ModuleFieldList((yyvsp[0].module_field)); } -#line 4083 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4089 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 184: -#line 1330 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1336 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module) = new Module(); } -#line 4089 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4095 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 186: -#line 1335 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1341 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module) = new Module(); check_import_ordering(&(yylsp[0]), lexer, parser, (yyval.module), *(yyvsp[0].module_fields)); append_module_fields((yyval.module), (yyvsp[0].module_fields)); delete (yyvsp[0].module_fields); } -#line 4100 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4106 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 187: -#line 1341 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1347 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.module) = (yyvsp[-1].module); check_import_ordering(&(yylsp[0]), lexer, parser, (yyval.module), *(yyvsp[0].module_fields)); append_module_fields((yyval.module), (yyvsp[0].module_fields)); delete (yyvsp[0].module_fields); } -#line 4111 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4117 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 188: -#line 1350 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1356 "src/wast-parser.y" /* yacc.c:1646 */ { if ((yyvsp[0].script_module)->type == ScriptModule::Type::Text) { (yyval.module) = (yyvsp[0].script_module)->text; @@ -4130,29 +4136,29 @@ yyreduce: } delete (yyvsp[0].script_module); } -#line 4134 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4140 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 190: -#line 1378 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1384 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.var) = new Var(kInvalidIndex); } -#line 4142 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4148 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 191: -#line 1381 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1387 "src/wast-parser.y" /* yacc.c:1646 */ { StringSlice name; DUPTEXT(name, (yyvsp[0].text)); (yyval.var) = new Var(name); } -#line 4152 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4158 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 192: -#line 1389 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1395 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.script_module) = new ScriptModule(); (yyval.script_module)->type = ScriptModule::Type::Text; @@ -4171,11 +4177,11 @@ yyreduce: } } } -#line 4175 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4181 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 193: -#line 1407 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1413 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.script_module) = new ScriptModule(); (yyval.script_module)->type = ScriptModule::Type::Binary; @@ -4184,11 +4190,11 @@ yyreduce: dup_text_list(&(yyvsp[-1].text_list), &(yyval.script_module)->binary.data, &(yyval.script_module)->binary.size); destroy_text_list(&(yyvsp[-1].text_list)); } -#line 4188 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4194 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 194: -#line 1415 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1421 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.script_module) = new ScriptModule(); (yyval.script_module)->type = ScriptModule::Type::Quoted; @@ -4197,11 +4203,11 @@ yyreduce: dup_text_list(&(yyvsp[-1].text_list), &(yyval.script_module)->quoted.data, &(yyval.script_module)->quoted.size); destroy_text_list(&(yyvsp[-1].text_list)); } -#line 4201 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4207 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 195: -#line 1426 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1432 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.action) = new Action(); (yyval.action)->loc = (yylsp[-4]); @@ -4213,11 +4219,11 @@ yyreduce: (yyval.action)->invoke->args = std::move(*(yyvsp[-1].consts)); delete (yyvsp[-1].consts); } -#line 4217 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4223 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 196: -#line 1437 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1443 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.action) = new Action(); (yyval.action)->loc = (yylsp[-3]); @@ -4226,128 +4232,128 @@ yyreduce: (yyval.action)->type = ActionType::Get; (yyval.action)->name = (yyvsp[-1].text); } -#line 4230 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4236 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 197: -#line 1448 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1454 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertMalformedCommand((yyvsp[-2].script_module), (yyvsp[-1].text)); } -#line 4238 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4244 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 198: -#line 1451 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1457 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertInvalidCommand((yyvsp[-2].script_module), (yyvsp[-1].text)); } -#line 4246 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4252 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 199: -#line 1454 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1460 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertUnlinkableCommand((yyvsp[-2].script_module), (yyvsp[-1].text)); } -#line 4254 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4260 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 200: -#line 1457 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1463 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertUninstantiableCommand((yyvsp[-2].script_module), (yyvsp[-1].text)); } -#line 4262 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4268 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 201: -#line 1460 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1466 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertReturnCommand((yyvsp[-2].action), (yyvsp[-1].consts)); } -#line 4270 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4276 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 202: -#line 1463 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1469 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertReturnCanonicalNanCommand((yyvsp[-1].action)); } -#line 4278 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4284 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 203: -#line 1466 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1472 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertReturnArithmeticNanCommand((yyvsp[-1].action)); } -#line 4286 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4292 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 204: -#line 1469 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1475 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertTrapCommand((yyvsp[-2].action), (yyvsp[-1].text)); } -#line 4294 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4300 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 205: -#line 1472 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1478 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new AssertExhaustionCommand((yyvsp[-2].action), (yyvsp[-1].text)); } -#line 4302 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4308 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 206: -#line 1478 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1484 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new ActionCommand((yyvsp[0].action)); } -#line 4310 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4316 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 208: -#line 1482 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1488 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.command) = new ModuleCommand((yyvsp[0].module)); } -#line 4318 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4324 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 209: -#line 1485 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1491 "src/wast-parser.y" /* yacc.c:1646 */ { auto* command = new RegisterCommand((yyvsp[-2].text), *(yyvsp[-1].var)); delete (yyvsp[-1].var); command->var.loc = (yylsp[-1]); (yyval.command) = command; } -#line 4329 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4335 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 210: -#line 1493 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1499 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.commands) = new CommandPtrVector(); (yyval.commands)->emplace_back((yyvsp[0].command)); } -#line 4338 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4344 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 211: -#line 1497 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1503 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.commands) = (yyvsp[-1].commands); (yyval.commands)->emplace_back((yyvsp[0].command)); } -#line 4347 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4353 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 212: -#line 1504 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1510 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.const_).loc = (yylsp[-2]); if (Failed(parse_const((yyvsp[-2].type), (yyvsp[-1].literal).type, (yyvsp[-1].literal).text.start, @@ -4358,34 +4364,34 @@ yyreduce: } delete [] (yyvsp[-1].literal).text.start; } -#line 4362 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4368 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 213: -#line 1516 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1522 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.consts) = new ConstVector(); } -#line 4368 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4374 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 214: -#line 1517 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1523 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.consts) = (yyvsp[-1].consts); (yyval.consts)->push_back((yyvsp[0].const_)); } -#line 4377 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4383 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 215: -#line 1524 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1530 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.script) = new Script(); } -#line 4385 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4391 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 216: -#line 1527 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1533 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.script) = new Script(); (yyval.script)->commands = std::move(*(yyvsp[0].commands)); @@ -4450,26 +4456,26 @@ yyreduce: } } } -#line 4454 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4460 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 217: -#line 1591 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1597 "src/wast-parser.y" /* yacc.c:1646 */ { (yyval.script) = new Script(); (yyval.script)->commands.emplace_back(new ModuleCommand((yyvsp[0].module))); } -#line 4463 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4469 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; case 218: -#line 1600 "src/wast-parser.y" /* yacc.c:1646 */ +#line 1606 "src/wast-parser.y" /* yacc.c:1646 */ { parser->script = (yyvsp[0].script); } -#line 4469 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4475 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ break; -#line 4473 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ +#line 4479 "src/prebuilt/wast-parser-gen.cc" /* yacc.c:1646 */ default: break; } /* User semantic actions sometimes alter yychar, and that requires @@ -4704,7 +4710,7 @@ yyreturn: #endif return yyresult; } -#line 1603 "src/wast-parser.y" /* yacc.c:1906 */ +#line 1609 "src/wast-parser.y" /* yacc.c:1906 */ Result parse_const(Type type, @@ -5015,7 +5021,7 @@ void append_module_fields(Module* module, ModuleFieldList* fields) { } Result parse_wast(WastLexer* lexer, Script** out_script, - SourceErrorHandler* error_handler, + ErrorHandler* error_handler, WastParseOptions* options) { WastParser parser; ZeroMemory(parser); @@ -5039,17 +5045,21 @@ Result parse_wast(WastLexer* lexer, Script** out_script, BinaryErrorHandlerModule::BinaryErrorHandlerModule( Location* loc, WastLexer* lexer, WastParser* parser) - : loc_(loc), lexer_(lexer), parser_(parser) {} - -bool BinaryErrorHandlerModule::OnError(Offset offset, - const std::string& error) { - if (offset == kInvalidOffset) { + : ErrorHandler(Location::Type::Binary), + loc_(loc), + lexer_(lexer), + parser_(parser) {} + +bool BinaryErrorHandlerModule::OnError( + const Location& binary_loc, const std::string& error, + const std::string& source_line, size_t source_line_column_offset) { + if (binary_loc.offset == kInvalidOffset) { wast_parser_error(loc_, lexer_, parser_, "error in binary module: %s", error.c_str()); } else { wast_parser_error(loc_, lexer_, parser_, - "error in binary module: @0x%08" PRIzx ": %s", offset, - error.c_str()); + "error in binary module: @0x%08" PRIzx ": %s", + binary_loc.offset, error.c_str()); } return true; } diff --git a/src/prebuilt/wast-parser-gen.hh b/src/prebuilt/wast-parser-gen.hh index b2761beb..ffde5533 100644 --- a/src/prebuilt/wast-parser-gen.hh +++ b/src/prebuilt/wast-parser-gen.hh @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 3.0.4. */ +/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison interface for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/resolve-names.cc b/src/resolve-names.cc index e6e29194..1fdf81a7 100644 --- a/src/resolve-names.cc +++ b/src/resolve-names.cc @@ -32,9 +32,7 @@ typedef Label* LabelPtr; class NameResolver : public ExprVisitor::DelegateNop { public: - NameResolver(WastLexer* lexer, - Script* script, - SourceErrorHandler* error_handler); + NameResolver(WastLexer* lexer, Script* script, ErrorHandler* error_handler); Result VisitModule(Module* module); Result VisitScript(Script* script); @@ -84,7 +82,7 @@ class NameResolver : public ExprVisitor::DelegateNop { void VisitScriptModule(ScriptModule* script_module); void VisitCommand(Command* command); - SourceErrorHandler* error_handler_ = nullptr; + ErrorHandler* error_handler_ = nullptr; WastLexer* lexer_ = nullptr; Script* script_ = nullptr; Module* current_module_ = nullptr; @@ -96,7 +94,7 @@ class NameResolver : public ExprVisitor::DelegateNop { NameResolver::NameResolver(WastLexer* lexer, Script* script, - SourceErrorHandler* error_handler) + ErrorHandler* error_handler) : error_handler_(error_handler), lexer_(lexer), script_(script), @@ -429,7 +427,7 @@ void NameResolver::VisitCommand(Command* command) { /* The module may be invalid because the names cannot be resolved; we * don't want to print errors or fail if that's the case, but we still * should try to resolve names when possible. */ - SourceErrorHandlerNop new_error_handler; + ErrorHandlerNop new_error_handler; NameResolver new_resolver(lexer_, script_, &new_error_handler); new_resolver.VisitScriptModule(assert_invalid_command->module); break; @@ -453,14 +451,14 @@ Result NameResolver::VisitScript(Script* script) { Result resolve_names_module(WastLexer* lexer, Module* module, - SourceErrorHandler* error_handler) { + ErrorHandler* error_handler) { NameResolver resolver(lexer, nullptr, error_handler); return resolver.VisitModule(module); } Result resolve_names_script(WastLexer* lexer, Script* script, - SourceErrorHandler* error_handler) { + ErrorHandler* error_handler) { NameResolver resolver(lexer, script, error_handler); return resolver.VisitScript(script); } diff --git a/src/resolve-names.h b/src/resolve-names.h index 2ae7a0f9..c14526d1 100644 --- a/src/resolve-names.h +++ b/src/resolve-names.h @@ -24,10 +24,10 @@ namespace wabt { class WastLexer; struct Module; struct Script; -class SourceErrorHandler; +class ErrorHandler; -Result resolve_names_module(WastLexer*, Module*, SourceErrorHandler*); -Result resolve_names_script(WastLexer*, Script*, SourceErrorHandler*); +Result resolve_names_module(WastLexer*, Module*, ErrorHandler*); +Result resolve_names_script(WastLexer*, Script*, ErrorHandler*); } // namespace wabt diff --git a/src/tools/wasm-interp.cc b/src/tools/wasm-interp.cc index 4a4408a5..7bdb827a 100644 --- a/src/tools/wasm-interp.cc +++ b/src/tools/wasm-interp.cc @@ -23,13 +23,12 @@ #include <string> #include <vector> -#include "binary-error-handler.h" #include "binary-reader-interpreter.h" #include "binary-reader.h" +#include "error-handler.h" #include "interpreter.h" #include "literal.h" #include "option-parser.h" -#include "source-error-handler.h" #include "stream.h" #include "wast-lexer.h" #include "wast-parser.h" @@ -301,7 +300,7 @@ static void run_all_exports(Module* module, static wabt::Result read_module(const char* module_filename, Environment* env, - BinaryErrorHandler* error_handler, + ErrorHandler* error_handler, DefinedModule** out_module) { wabt::Result result; char* data; @@ -452,7 +451,7 @@ static wabt::Result read_and_run_module(const char* module_filename) { Environment env; init_environment(&env); - BinaryErrorHandlerFile error_handler; + ErrorHandlerFile error_handler(Location::Type::Binary); DefinedModule* module = nullptr; result = read_module(module_filename, &env, &error_handler, &module); if (Succeeded(result)) { @@ -896,7 +895,7 @@ static wabt::Result on_module_command(Context* ctx, StringSlice name) { char* path = create_module_path(ctx, filename); Environment::MarkPoint mark = ctx->env.Mark(); - BinaryErrorHandlerFile error_handler; + ErrorHandlerFile error_handler(Location::Type::Binary); wabt::Result result = read_module(path, &ctx->env, &error_handler, &ctx->last_module); @@ -984,13 +983,12 @@ static wabt::Result on_action_command(Context* ctx, Action* action) { return result; } -static wabt::Result read_invalid_text_module( - const char* module_filename, - Environment* env, - SourceErrorHandler* source_error_handler) { +static wabt::Result read_invalid_text_module(const char* module_filename, + Environment* env, + ErrorHandler* error_handler) { std::unique_ptr<WastLexer> lexer = WastLexer::CreateFileLexer(module_filename); - wabt::Result result = parse_wast(lexer.get(), nullptr, source_error_handler); + wabt::Result result = parse_wast(lexer.get(), nullptr, error_handler); return result; } @@ -1006,15 +1004,15 @@ static wabt::Result read_invalid_module(Context* ctx, switch (module_type) { case ModuleType::Text: { - SourceErrorHandlerFile error_handler( - stdout, header, SourceErrorHandlerFile::PrintHeader::Once); + ErrorHandlerFile error_handler(Location::Type::Text, stdout, header, + ErrorHandlerFile::PrintHeader::Once); return read_invalid_text_module(module_filename, env, &error_handler); } case ModuleType::Binary: { DefinedModule* module; - BinaryErrorHandlerFile error_handler( - stdout, header, BinaryErrorHandlerFile::PrintHeader::Once); + ErrorHandlerFile error_handler(Location::Type::Binary, stdout, header, + ErrorHandlerFile::PrintHeader::Once); return read_module(module_filename, env, &error_handler, &module); } @@ -1116,7 +1114,7 @@ static wabt::Result on_assert_uninstantiable_command(Context* ctx, StringSlice filename, StringSlice text, ModuleType module_type) { - BinaryErrorHandlerFile error_handler; + ErrorHandlerFile error_handler(Location::Type::Binary); ctx->total++; char* path = create_module_path(ctx, filename); DefinedModule* module; diff --git a/src/tools/wasm2wast.cc b/src/tools/wasm2wast.cc index e84d779c..8bdc0a39 100644 --- a/src/tools/wasm2wast.cc +++ b/src/tools/wasm2wast.cc @@ -20,13 +20,12 @@ #include <cstdlib> #include "apply-names.h" -#include "binary-error-handler.h" #include "binary-reader.h" #include "binary-reader-ir.h" +#include "error-handler.h" #include "generate-names.h" #include "ir.h" #include "option-parser.h" -#include "source-error-handler.h" #include "stream.h" #include "validator.h" #include "wast-lexer.h" @@ -106,22 +105,16 @@ int ProgramMain(int argc, char** argv) { size_t size; result = read_file(s_infile.c_str(), &data, &size); if (Succeeded(result)) { - BinaryErrorHandlerFile error_handler; + ErrorHandlerFile binary_error_handler(Location::Type::Binary); Module module; - result = read_binary_ir(s_infile.c_str(), data, size, - &s_read_binary_options, &error_handler, &module); + result = + read_binary_ir(s_infile.c_str(), data, size, &s_read_binary_options, + &binary_error_handler, &module); if (Succeeded(result)) { if (Succeeded(result) && s_validate) { - // TODO(binji): Would be nicer to use a builder pattern for an option - // struct here, e.g.: - // - // SourceErrorHandlerFile::Options() - // .LocationType(Location::Type::Binary) - SourceErrorHandlerFile error_handler( - stderr, std::string(), SourceErrorHandlerFile::PrintHeader::Never, - 80, Location::Type::Binary); + ErrorHandlerFile text_error_handler(Location::Type::Text); WastLexer* lexer = nullptr; - result = validate_module(lexer, &module, &error_handler); + result = validate_module(lexer, &module, &text_error_handler); } if (s_generate_names) diff --git a/src/tools/wast-desugar.cc b/src/tools/wast-desugar.cc index a5af9504..eb9aa42d 100644 --- a/src/tools/wast-desugar.cc +++ b/src/tools/wast-desugar.cc @@ -23,10 +23,10 @@ #include "apply-names.h" #include "common.h" #include "config.h" +#include "error-handler.h" #include "generate-names.h" #include "ir.h" #include "option-parser.h" -#include "source-error-handler.h" #include "stream.h" #include "wast-parser.h" #include "wat-writer.h" @@ -85,10 +85,10 @@ int ProgramMain(int argc, char** argv) { if (!lexer) WABT_FATAL("unable to read %s\n", s_infile); - SourceErrorHandlerFile error_handler; + ErrorHandlerFile error_handler(Location::Type::Text); Script* script; - Result result = parse_wast(lexer.get(), &script, &error_handler, - &s_parse_options); + Result result = + parse_wast(lexer.get(), &script, &error_handler, &s_parse_options); if (Succeeded(result)) { Module* module = script->GetFirstModule(); diff --git a/src/tools/wast2wasm.cc b/src/tools/wast2wasm.cc index a2126e15..f2863551 100644 --- a/src/tools/wast2wasm.cc +++ b/src/tools/wast2wasm.cc @@ -26,10 +26,10 @@ #include "binary-writer.h" #include "binary-writer-spec.h" #include "common.h" +#include "error-handler.h" #include "ir.h" #include "option-parser.h" #include "resolve-names.h" -#include "source-error-handler.h" #include "stream.h" #include "validator.h" #include "wast-parser.h" @@ -135,10 +135,10 @@ int ProgramMain(int argc, char** argv) { if (!lexer) WABT_FATAL("unable to read file: %s\n", s_infile); - SourceErrorHandlerFile error_handler; + ErrorHandlerFile error_handler(Location::Type::Text); Script* script; - Result result = parse_wast(lexer.get(), &script, &error_handler, - &s_parse_options); + Result result = + parse_wast(lexer.get(), &script, &error_handler, &s_parse_options); if (Succeeded(result)) { result = resolve_names_script(lexer.get(), script, &error_handler); diff --git a/src/validator.cc b/src/validator.cc index 0373ac1c..f3137081 100644 --- a/src/validator.cc +++ b/src/validator.cc @@ -24,7 +24,7 @@ #include "binary-reader.h" #include "cast.h" -#include "source-error-handler.h" +#include "error-handler.h" #include "type-checker.h" #include "wast-parser-lexer-shared.h" @@ -35,7 +35,7 @@ namespace { class Validator { public: WABT_DISALLOW_COPY_AND_ASSIGN(Validator); - Validator(SourceErrorHandler*, WastLexer*, const Script*); + Validator(ErrorHandler*, WastLexer*, const Script*); Result CheckModule(const Module* module); Result CheckScript(const Script* script); @@ -142,7 +142,7 @@ class Validator { void CheckExcept(const Location* loc, const Exception* Except); Result CheckExceptVar(const Var* var, const Exception** out_except); - SourceErrorHandler* error_handler_ = nullptr; + ErrorHandler* error_handler_ = nullptr; WastLexer* lexer_ = nullptr; const Script* script_ = nullptr; const Module* current_module_ = nullptr; @@ -159,7 +159,7 @@ class Validator { std::vector<TryContext> try_contexts_; }; -Validator::Validator(SourceErrorHandler* error_handler, +Validator::Validator(ErrorHandler* error_handler, WastLexer* lexer, const Script* script) : error_handler_(error_handler), lexer_(lexer), script_(script) { @@ -1148,7 +1148,7 @@ Result Validator::CheckScript(const Script* script) { Result validate_script(WastLexer* lexer, const Script* script, - SourceErrorHandler* error_handler) { + ErrorHandler* error_handler) { Validator validator(error_handler, lexer, script); return validator.CheckScript(script); @@ -1156,7 +1156,7 @@ Result validate_script(WastLexer* lexer, Result validate_module(WastLexer* lexer, const Module* module, - SourceErrorHandler* error_handler) { + ErrorHandler* error_handler) { Validator validator(error_handler, lexer, nullptr); return validator.CheckModule(module); diff --git a/src/validator.h b/src/validator.h index 38b65904..94fc5ace 100644 --- a/src/validator.h +++ b/src/validator.h @@ -23,12 +23,12 @@ namespace wabt { struct Module; struct Script; -class SourceErrorHandler; +class ErrorHandler; // Perform all checks on the script. It is valid if and only if this function // succeeds. -Result validate_script(WastLexer*, const Script*, SourceErrorHandler*); -Result validate_module(WastLexer*, const Module*, SourceErrorHandler*); +Result validate_script(WastLexer*, const Script*, ErrorHandler*); +Result validate_module(WastLexer*, const Module*, ErrorHandler*); } // namespace wabt diff --git a/src/wabt.post.js b/src/wabt.post.js index 9f245092..d7270a5e 100644 --- a/src/wabt.post.js +++ b/src/wabt.post.js @@ -119,44 +119,33 @@ OutputBuffer.prototype.destroy = function() { }; -/// SourceErrorHandler -function SourceErrorHandler() { - this.addr = Module._wabt_new_source_error_handler_buffer(); -} -SourceErrorHandler.prototype = Object.create(Object.prototype); - -SourceErrorHandler.prototype.getMessage = function() { - var addr = Module._wabt_source_error_handler_buffer_get_data(this.addr); - var size = Module._wabt_source_error_handler_buffer_get_size(this.addr); - return Module.Pointer_stringify(addr, size); -} - -SourceErrorHandler.prototype.destroy = function() { - Module._wabt_destroy_source_error_handler_buffer(this.addr); -}; - - -/// BinaryErrorHandler -function BinaryErrorHandler() { - this.addr = Module._wabt_new_binary_error_handler_buffer(); +/// ErrorHandler +function ErrorHandler(kind) { + if (kind == 'text') { + this.addr = Module._wabt_new_text_error_handler_buffer(); + } else if (kind == 'binary') { + this.addr = Module._wabt_new_binary_error_handler_buffer(); + } else { + throw new Error('Invalid ErrorHandler kind: ' + kind); + } } -BinaryErrorHandler.prototype = Object.create(Object.prototype); +ErrorHandler.prototype = Object.create(Object.prototype); -BinaryErrorHandler.prototype.getMessage = function() { - var addr = Module._wabt_binary_error_handler_buffer_get_data(this.addr); - var size = Module._wabt_binary_error_handler_buffer_get_size(this.addr); +ErrorHandler.prototype.getMessage = function() { + var addr = Module._wabt_error_handler_buffer_get_data(this.addr); + var size = Module._wabt_error_handler_buffer_get_size(this.addr); return Module.Pointer_stringify(addr, size); } -BinaryErrorHandler.prototype.destroy = function() { - Module._wabt_destroy_binary_error_handler_buffer(this.addr); +ErrorHandler.prototype.destroy = function() { + Module._wabt_destroy_error_handler_buffer(this.addr); }; /// parseWast function parseWast(filename, buffer) { var lexer = new Lexer(filename, buffer); - var errorHandler = new SourceErrorHandler(); + var errorHandler = new ErrorHandler('text'); try { var parseResult_addr = @@ -187,7 +176,7 @@ function parseWast(filename, buffer) { // readWasm function readWasm(buffer, options) { var bufferObj = allocateBuffer(buffer); - var errorHandler = new BinaryErrorHandler(); + var errorHandler = new ErrorHandler('binary'); var readDebugNames = booleanOrDefault(options.readDebugNames, false); try { @@ -220,7 +209,7 @@ function WasmScript(lexer, script_addr) { WasmScript.prototype = Object.create(Object.prototype); WasmScript.prototype.resolveNames = function() { - var errorHandler = new SourceErrorHandler(); + var errorHandler = new ErrorHandler('text'); try { var result = Module._wabt_resolve_names_script( this.lexer.addr, this.script_addr, errorHandler.addr); @@ -233,7 +222,7 @@ WasmScript.prototype.resolveNames = function() { }; WasmScript.prototype.validate = function() { - var errorHandler = new SourceErrorHandler(); + var errorHandler = new ErrorHandler('text'); try { var result = Module._wabt_validate_script( this.lexer.addr, this.script_addr, errorHandler.addr); diff --git a/src/wast-parser-lexer-shared.cc b/src/wast-parser-lexer-shared.cc index ae334f64..659ebcbc 100644 --- a/src/wast-parser-lexer-shared.cc +++ b/src/wast-parser-lexer-shared.cc @@ -35,7 +35,7 @@ void wast_parser_error(Location* loc, va_end(args); } -void wast_format_error(SourceErrorHandler* error_handler, +void wast_format_error(ErrorHandler* error_handler, const struct Location* loc, WastLexer* lexer, const char* format, @@ -62,7 +62,7 @@ void wast_format_error(SourceErrorHandler* error_handler, } } - error_handler->OnError(loc, std::string(buffer), source_line.line, + error_handler->OnError(*loc, std::string(buffer), source_line.line, source_line.column_offset); va_end(args_copy); } diff --git a/src/wast-parser-lexer-shared.h b/src/wast-parser-lexer-shared.h index b7666b5d..61cb5faf 100644 --- a/src/wast-parser-lexer-shared.h +++ b/src/wast-parser-lexer-shared.h @@ -22,7 +22,7 @@ #include "common.h" #include "ir.h" -#include "source-error-handler.h" +#include "error-handler.h" #include "wast-parser.h" #define WABT_WAST_PARSER_STYPE Token @@ -91,7 +91,7 @@ union Token { struct WastParser { Script* script; - SourceErrorHandler* error_handler; + ErrorHandler* error_handler; int errors; /* Cached pointers to reallocated parser buffers, so they don't leak. */ int16_t* yyssa; @@ -109,7 +109,7 @@ void WABT_PRINTF_FORMAT(4, 5) wast_parser_error(struct Location*, struct WastParser*, const char*, ...); -void wast_format_error(SourceErrorHandler*, +void wast_format_error(ErrorHandler*, const struct Location*, WastLexer*, const char* format, diff --git a/src/wast-parser.h b/src/wast-parser.h index ea83bbde..07a927a9 100644 --- a/src/wast-parser.h +++ b/src/wast-parser.h @@ -22,14 +22,16 @@ namespace wabt { struct Script; -class SourceErrorHandler; +class ErrorHandler; struct WastParseOptions { bool allow_future_exceptions = false; bool debug_parsing = false; }; -Result parse_wast(WastLexer* lexer, Script** out_script, SourceErrorHandler*, +Result parse_wast(WastLexer* lexer, + Script** out_script, + ErrorHandler*, WastParseOptions* options = nullptr); } // namespace wabt diff --git a/src/wast-parser.y b/src/wast-parser.y index 2202ea97..84d330cc 100644 --- a/src/wast-parser.y +++ b/src/wast-parser.y @@ -22,10 +22,10 @@ #include <cstdlib> #include <utility> -#include "binary-error-handler.h" #include "binary-reader.h" #include "binary-reader-ir.h" #include "cast.h" +#include "error-handler.h" #include "literal.h" #include "wast-parser.h" #include "wast-parser-lexer-shared.h" @@ -135,10 +135,16 @@ static void check_import_ordering(Location* loc, const ModuleFieldList&); static void append_module_fields(Module*, ModuleFieldList*); -class BinaryErrorHandlerModule : public BinaryErrorHandler { +class BinaryErrorHandlerModule : public ErrorHandler { public: BinaryErrorHandlerModule(Location* loc, WastLexer* lexer, WastParser* parser); - bool OnError(Offset offset, const std::string& error) override; + bool OnError(const Location&, + const std::string& error, + const std::string& source_line, + size_t source_line_column_offset) override; + + // Unused. + size_t source_line_max_length() const override { return 0; } private: Location* loc_; @@ -1910,7 +1916,7 @@ void append_module_fields(Module* module, ModuleFieldList* fields) { } Result parse_wast(WastLexer* lexer, Script** out_script, - SourceErrorHandler* error_handler, + ErrorHandler* error_handler, WastParseOptions* options) { WastParser parser; ZeroMemory(parser); @@ -1934,17 +1940,21 @@ Result parse_wast(WastLexer* lexer, Script** out_script, BinaryErrorHandlerModule::BinaryErrorHandlerModule( Location* loc, WastLexer* lexer, WastParser* parser) - : loc_(loc), lexer_(lexer), parser_(parser) {} - -bool BinaryErrorHandlerModule::OnError(Offset offset, - const std::string& error) { - if (offset == kInvalidOffset) { + : ErrorHandler(Location::Type::Binary), + loc_(loc), + lexer_(lexer), + parser_(parser) {} + +bool BinaryErrorHandlerModule::OnError( + const Location& binary_loc, const std::string& error, + const std::string& source_line, size_t source_line_column_offset) { + if (binary_loc.offset == kInvalidOffset) { wast_parser_error(loc_, lexer_, parser_, "error in binary module: %s", error.c_str()); } else { wast_parser_error(loc_, lexer_, parser_, - "error in binary module: @0x%08" PRIzx ": %s", offset, - error.c_str()); + "error in binary module: @0x%08" PRIzx ": %s", + binary_loc.offset, error.c_str()); } return true; } diff --git a/test/binary/bad-data-size.txt b/test/binary/bad-data-size.txt index f5416221..c901f585 100644 --- a/test/binary/bad-data-size.txt +++ b/test/binary/bad-data-size.txt @@ -16,6 +16,6 @@ section(DATA) { (;; STDERR ;;; Error running "wasm-interp": error: data segment is out of bounds: [0, 8) >= max value 0 -error: @0x0000001d: OnDataSegmentData callback failed +000001d: error: OnDataSegmentData callback failed ;;; STDERR ;;) diff --git a/test/binary/bad-duplicate-section-around-custom.txt b/test/binary/bad-duplicate-section-around-custom.txt index 64ea95d1..752905dc 100644 --- a/test/binary/bad-duplicate-section-around-custom.txt +++ b/test/binary/bad-duplicate-section-around-custom.txt @@ -7,6 +7,6 @@ section("foo") { 1 2 3 4 } section(TYPE) { count[0] } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000017: section Type out of order +0000017: error: section Type out of order ;;; STDERR ;;) diff --git a/test/binary/bad-duplicate-section.txt b/test/binary/bad-duplicate-section.txt index 393bc012..1f206113 100644 --- a/test/binary/bad-duplicate-section.txt +++ b/test/binary/bad-duplicate-section.txt @@ -6,6 +6,6 @@ section(TYPE) { count[0] } section(TYPE) { count[0] } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000d: section Type out of order +000000d: error: section Type out of order ;;; STDERR ;;) diff --git a/test/binary/bad-duplicate-subsection.txt b/test/binary/bad-duplicate-subsection.txt index 9444caf6..c6c75ed8 100644 --- a/test/binary/bad-duplicate-subsection.txt +++ b/test/binary/bad-duplicate-subsection.txt @@ -21,6 +21,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000028: duplicate sub-section +0000028: error: duplicate sub-section ;;; STDERR ;;) diff --git a/test/binary/bad-export-func.txt b/test/binary/bad-export-func.txt index 21e82c00..b59b6c00 100644 --- a/test/binary/bad-export-func.txt +++ b/test/binary/bad-export-func.txt @@ -7,6 +7,6 @@ section(FUNCTION) { count[1] sig[0] } section(EXPORT) { count[1] str("foo") func_kind func[1] } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000001b: invalid export func index: 1 +000001b: error: invalid export func index: 1 ;;; STDERR ;;) diff --git a/test/binary/bad-extra-end.txt b/test/binary/bad-extra-end.txt index ffdccefb..adf017af 100644 --- a/test/binary/bad-extra-end.txt +++ b/test/binary/bad-extra-end.txt @@ -15,6 +15,6 @@ section(CODE) { (;; STDERR ;;; Error running "wasm2wast": error: popping empty label stack -error: @0x0000001a: OnEndExpr callback failed +000001a: error: OnEndExpr callback failed ;;; STDERR ;;) diff --git a/test/binary/bad-function-body-count.txt b/test/binary/bad-function-body-count.txt index ca5a90ad..2e4b8986 100644 --- a/test/binary/bad-function-body-count.txt +++ b/test/binary/bad-function-body-count.txt @@ -10,6 +10,6 @@ section(CODE) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000016: function signature count != function body count +0000016: error: function signature count != function body count ;;; STDERR ;;) diff --git a/test/binary/bad-function-body-size.txt b/test/binary/bad-function-body-size.txt index db1cab37..8b436260 100644 --- a/test/binary/bad-function-body-size.txt +++ b/test/binary/bad-function-body-size.txt @@ -14,6 +14,6 @@ section(CODE) { } (;; STDERR ;;; Error running "wasm-interp": -error: @0x00000019: function body longer than given size +0000019: error: function body longer than given size ;;; STDERR ;;) diff --git a/test/binary/bad-function-local-type.txt b/test/binary/bad-function-local-type.txt index b77f293f..602505d4 100644 --- a/test/binary/bad-function-local-type.txt +++ b/test/binary/bad-function-local-type.txt @@ -13,6 +13,6 @@ section(CODE) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000019: expected valid local type +0000019: error: expected valid local type ;;; STDERR ;;) diff --git a/test/binary/bad-function-names-too-many.txt b/test/binary/bad-function-names-too-many.txt index 9cd1d514..bb936ae6 100644 --- a/test/binary/bad-function-names-too-many.txt +++ b/test/binary/bad-function-names-too-many.txt @@ -17,6 +17,6 @@ section("name") { (;; STDERR ;;; Error running "wasm2wast": error: expected function name count (2) <= function count (1) -error: @0x00000023: OnFunctionNamesCount callback failed +0000023: error: OnFunctionNamesCount callback failed ;;; STDERR ;;) diff --git a/test/binary/bad-function-param-type.txt b/test/binary/bad-function-param-type.txt index f10898ae..d61f7f38 100644 --- a/test/binary/bad-function-param-type.txt +++ b/test/binary/bad-function-param-type.txt @@ -8,6 +8,6 @@ section(TYPE) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000e: expected valid param type (got -64) +000000e: error: expected valid param type (got -64) ;;; STDERR ;;) diff --git a/test/binary/bad-function-result-type.txt b/test/binary/bad-function-result-type.txt index 06729479..cb7fe427 100644 --- a/test/binary/bad-function-result-type.txt +++ b/test/binary/bad-function-result-type.txt @@ -8,6 +8,6 @@ section(TYPE) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000010: expected valid result type: -64 +0000010: error: expected valid result type: -64 ;;; STDERR ;;) diff --git a/test/binary/bad-function-sig.txt b/test/binary/bad-function-sig.txt index 604da698..95993af5 100644 --- a/test/binary/bad-function-sig.txt +++ b/test/binary/bad-function-sig.txt @@ -6,6 +6,6 @@ section(TYPE) { count[1] function params[1] i32 results[1] i32 } section(FUNCTION) { count[1] type[1] } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000014: invalid function signature index: 1 +0000014: error: invalid function signature index: 1 ;;; STDERR ;;) diff --git a/test/binary/bad-function-too-many-results.txt b/test/binary/bad-function-too-many-results.txt index 3536086e..992c0c7e 100644 --- a/test/binary/bad-function-too-many-results.txt +++ b/test/binary/bad-function-too-many-results.txt @@ -5,6 +5,6 @@ version section(TYPE) { count[1] function params[0] results[2] i32 i32 } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000e: result count must be 0 or 1 +000000e: error: result count must be 0 or 1 ;;; STDERR ;;) diff --git a/test/binary/bad-import-sig.txt b/test/binary/bad-import-sig.txt index 7fa33156..c2d4c63a 100644 --- a/test/binary/bad-import-sig.txt +++ b/test/binary/bad-import-sig.txt @@ -6,6 +6,6 @@ section(TYPE) { count[1] function params[0] results[1] i32 } section(IMPORT) { count[1] str("module") str("func") func_kind type[1] } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000020: invalid import signature index +0000020: error: invalid import signature index ;;; STDERR ;;) diff --git a/test/binary/bad-logging-basic.txt b/test/binary/bad-logging-basic.txt index a03a4a64..921591ff 100644 --- a/test/binary/bad-logging-basic.txt +++ b/test/binary/bad-logging-basic.txt @@ -13,7 +13,7 @@ section(CODE) { } (;; STDERR ;;; Error running "wasm-interp": -error: @0x00000015: function signature count != function body count +0000015: error: function signature count != function body count ;;; STDERR ;;) (;; STDOUT ;;; diff --git a/test/binary/bad-magic.txt b/test/binary/bad-magic.txt index 336631b0..263be60c 100644 --- a/test/binary/bad-magic.txt +++ b/test/binary/bad-magic.txt @@ -4,6 +4,6 @@ version (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000004: bad magic value +0000004: error: bad magic value ;;; STDERR ;;) diff --git a/test/binary/bad-memory-init-max-size.txt b/test/binary/bad-memory-init-max-size.txt index 1c74c941..07fac13d 100644 --- a/test/binary/bad-memory-init-max-size.txt +++ b/test/binary/bad-memory-init-max-size.txt @@ -10,6 +10,6 @@ section(MEMORY) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000e: memory initial size must be <= max size +000000e: error: memory initial size must be <= max size ;;; STDERR ;;) diff --git a/test/binary/bad-memory-init-size.txt b/test/binary/bad-memory-init-size.txt index af30c148..befe9700 100644 --- a/test/binary/bad-memory-init-size.txt +++ b/test/binary/bad-memory-init-size.txt @@ -9,6 +9,6 @@ section(MEMORY) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000f: invalid memory initial size +000000f: error: invalid memory initial size ;;; STDERR ;;) diff --git a/test/binary/bad-memory-max-size.txt b/test/binary/bad-memory-max-size.txt index 3dc590e0..dc8aec74 100644 --- a/test/binary/bad-memory-max-size.txt +++ b/test/binary/bad-memory-max-size.txt @@ -10,6 +10,6 @@ section(MEMORY) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000010: invalid memory max size +0000010: error: invalid memory max size ;;; STDERR ;;) diff --git a/test/binary/bad-name-section-invalid-index.txt b/test/binary/bad-name-section-invalid-index.txt index d69f9a69..e5640219 100644 --- a/test/binary/bad-name-section-invalid-index.txt +++ b/test/binary/bad-name-section-invalid-index.txt @@ -20,6 +20,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000028: invalid function index: 8 +0000028: error: invalid function index: 8 ;;; STDERR ;;) diff --git a/test/binary/bad-names-duplicate-locals.txt b/test/binary/bad-names-duplicate-locals.txt index 90d23f26..643c5684 100644 --- a/test/binary/bad-names-duplicate-locals.txt +++ b/test/binary/bad-names-duplicate-locals.txt @@ -29,6 +29,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000035: duplicate local index: 0 +0000035: error: duplicate local index: 0 ;;; STDERR ;;) diff --git a/test/binary/bad-names-duplicates.txt b/test/binary/bad-names-duplicates.txt index 87c3d6f4..3801e025 100644 --- a/test/binary/bad-names-duplicates.txt +++ b/test/binary/bad-names-duplicates.txt @@ -21,6 +21,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000002c: duplicate function name: 0 +000002c: error: duplicate function name: 0 ;;; STDERR ;;) diff --git a/test/binary/bad-names-function-locals-out-of-order.txt b/test/binary/bad-names-function-locals-out-of-order.txt index 5ecc80a8..dc97252b 100644 --- a/test/binary/bad-names-function-locals-out-of-order.txt +++ b/test/binary/bad-names-function-locals-out-of-order.txt @@ -32,6 +32,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000003d: locals function index out of order: 0 +000003d: error: locals function index out of order: 0 ;;; STDERR ;;) diff --git a/test/binary/bad-names-locals-out-of-order.txt b/test/binary/bad-names-locals-out-of-order.txt index 746f15b3..d05edc6a 100644 --- a/test/binary/bad-names-locals-out-of-order.txt +++ b/test/binary/bad-names-locals-out-of-order.txt @@ -29,6 +29,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000035: local index out of order: 0 +0000035: error: local index out of order: 0 ;;; STDERR ;;) diff --git a/test/binary/bad-names-out-of-order.txt b/test/binary/bad-names-out-of-order.txt index d3f28447..ccb0a84f 100644 --- a/test/binary/bad-names-out-of-order.txt +++ b/test/binary/bad-names-out-of-order.txt @@ -22,6 +22,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000002c: function index out of order: 0 +000002c: error: function index out of order: 0 ;;; STDERR ;;) diff --git a/test/binary/bad-op-after-end.txt b/test/binary/bad-op-after-end.txt index 4d7aeed4..c6ab8051 100644 --- a/test/binary/bad-op-after-end.txt +++ b/test/binary/bad-op-after-end.txt @@ -15,6 +15,6 @@ section(CODE) { (;; STDERR ;;; Error running "wasm2wast": error: accessing stack depth: 0 >= max: 0 -error: @0x0000001a: OnNopExpr callback failed +000001a: error: OnNopExpr callback failed ;;; STDERR ;;) diff --git a/test/binary/bad-section-ends-early.txt b/test/binary/bad-section-ends-early.txt index 19f9b33f..7c7d73f4 100644 --- a/test/binary/bad-section-ends-early.txt +++ b/test/binary/bad-section-ends-early.txt @@ -15,6 +15,6 @@ dummy[0] dummy[0] (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000b: unfinished section (expected end: 0xf) +000000b: error: unfinished section (expected end: 0xf) ;;; STDERR ;;) diff --git a/test/binary/bad-section-size-zero.txt b/test/binary/bad-section-size-zero.txt index f1b766fa..d1e43807 100644 --- a/test/binary/bad-section-size-zero.txt +++ b/test/binary/bad-section-size-zero.txt @@ -7,6 +7,6 @@ section_code[1] section_size[0] 1 2 3 4 5 (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000a: unable to read u32 leb128: type count +000000a: error: unable to read u32 leb128: type count ;;; STDERR ;;) diff --git a/test/binary/bad-segment-no-memory.txt b/test/binary/bad-segment-no-memory.txt index 16d08fb7..d6759393 100644 --- a/test/binary/bad-segment-no-memory.txt +++ b/test/binary/bad-segment-no-memory.txt @@ -9,6 +9,6 @@ section(DATA) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000b: data section without memory section +000000b: error: data section without memory section ;;; STDERR ;;) diff --git a/test/binary/bad-start-func.txt b/test/binary/bad-start-func.txt index 74e73e89..38fcb7bf 100644 --- a/test/binary/bad-start-func.txt +++ b/test/binary/bad-start-func.txt @@ -7,6 +7,6 @@ section(FUNCTION) { count[1] sig[0] } section(START) { func[1] } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000015: invalid start function index: 1 +0000015: error: invalid start function index: 1 ;;; STDERR ;;) diff --git a/test/binary/bad-subsection-out-of-order.txt b/test/binary/bad-subsection-out-of-order.txt index 49fa5e4f..35e92676 100644 --- a/test/binary/bad-subsection-out-of-order.txt +++ b/test/binary/bad-subsection-out-of-order.txt @@ -21,6 +21,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000028: out-of-order sub-section +0000028: error: out-of-order sub-section ;;; STDERR ;;) diff --git a/test/binary/bad-subsection-size.txt b/test/binary/bad-subsection-size.txt index 8b9e9f60..1941c23d 100644 --- a/test/binary/bad-subsection-size.txt +++ b/test/binary/bad-subsection-size.txt @@ -20,6 +20,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000027: unable to read u32 leb128: function index +0000027: error: unable to read u32 leb128: function index ;;; STDERR ;;) diff --git a/test/binary/bad-subsection-unfinished.txt b/test/binary/bad-subsection-unfinished.txt index c3716841..44f32658 100644 --- a/test/binary/bad-subsection-unfinished.txt +++ b/test/binary/bad-subsection-unfinished.txt @@ -24,6 +24,6 @@ section("name") { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000002c: unfinished sub-section (expected end: 0x30) +000002c: error: unfinished sub-section (expected end: 0x30) ;;; STDERR ;;) diff --git a/test/binary/bad-type-form.txt b/test/binary/bad-type-form.txt index a98d5296..d7ab94c9 100644 --- a/test/binary/bad-type-form.txt +++ b/test/binary/bad-type-form.txt @@ -8,6 +8,6 @@ section(TYPE) { } (;; STDERR ;;; Error running "wasm2wast": -error: @0x0000000c: unexpected type form: 32 +000000c: error: unexpected type form: 32 ;;; STDERR ;;) diff --git a/test/binary/bad-typecheck-missing-drop.txt b/test/binary/bad-typecheck-missing-drop.txt index cd885578..64b80db8 100644 --- a/test/binary/bad-typecheck-missing-drop.txt +++ b/test/binary/bad-typecheck-missing-drop.txt @@ -15,6 +15,6 @@ section(CODE) { } (;; STDERR ;;; Error running "wasm2wast": -out/test/binary/bad-typecheck-missing-drop/bad-typecheck-missing-drop.wasm:28: type stack at end of function is 1, expected 0 +out/test/binary/bad-typecheck-missing-drop/bad-typecheck-missing-drop.wasm:28:0: error: type stack at end of function is 1, expected 0 ;;; STDERR ;;) diff --git a/test/binary/bad-version.txt b/test/binary/bad-version.txt index fe8cc216..8e988b98 100644 --- a/test/binary/bad-version.txt +++ b/test/binary/bad-version.txt @@ -4,6 +4,6 @@ magic 0xe 0 0 0 (;; STDERR ;;; Error running "wasm2wast": -error: @0x00000008: bad wasm file version: 0xe (expected 0x1) +0000008: error: bad wasm file version: 0xe (expected 0x1) ;;; STDERR ;;) diff --git a/test/dump/try-details.txt b/test/dump/try-details.txt index 820d9ff6..cdd29749 100644 --- a/test/dump/try-details.txt +++ b/test/dump/try-details.txt @@ -14,8 +14,11 @@ ) ) (;; STDOUT ;;; + try-details.wasm: file format wasm 0x1 + Section Details: + Type: - type[0] () -> i32 Function: @@ -23,7 +26,9 @@ Function: Custom: - name: "exception" - except[0] (i32) + Code Disassembly: + 000025 func[0]: 000027: 06 7f | try i32 000029: 01 | nop diff --git a/test/dump/try-exports-details.txt b/test/dump/try-exports-details.txt index 52c6efcd..1ed4a047 100644 --- a/test/dump/try-exports-details.txt +++ b/test/dump/try-exports-details.txt @@ -9,8 +9,11 @@ ) ) (;; STDOUT ;;; + try-exports-details.wasm: file format wasm 0x1 + Section Details: + Type: - type[0] () -> i32 Function: @@ -20,7 +23,9 @@ Export: Custom: - name: "exception" - except[0] (i32) + Code Disassembly: + 000031 func[0]: 000033: 41 07 | i32.const 7 000035: 08 00 | throw 0 diff --git a/test/dump/try-exports.txt b/test/dump/try-exports.txt index 1f2b4ccd..a92456f0 100644 --- a/test/dump/try-exports.txt +++ b/test/dump/try-exports.txt @@ -59,15 +59,20 @@ 0000037: 0b ; end 0000031: 06 ; FIXUP func body size 000002f: 08 ; FIXUP section size + try-exports.wasm: file format wasm 0x1 + Sections: + Type start=0x0000000a end=0x0000000f (size=0x00000005) count: 1 Function start=0x00000011 end=0x00000013 (size=0x00000002) count: 1 Export start=0x00000015 end=0x0000001f (size=0x0000000a) count: 1 Custom start=0x00000021 end=0x0000002e (size=0x0000000d) "exception" count: 1 Code start=0x00000030 end=0x00000038 (size=0x00000008) count: 1 + Code Disassembly: + 000031 func[0]: 000033: 41 07 | i32.const 7 000035: 08 00 | throw 0 diff --git a/test/dump/try-imports-details.txt b/test/dump/try-imports-details.txt index c1adb5b8..f2519866 100644 --- a/test/dump/try-imports-details.txt +++ b/test/dump/try-imports-details.txt @@ -16,15 +16,20 @@ ) ) (;; STDOUT ;;; + try-imports-details.wasm: file format wasm 0x1 + Section Details: + Type: - type[0] () -> i32 Import: - except[0] (i32) <- c++.except Function: - func[0] sig=0 + Code Disassembly: + 000027 func[0]: 000029: 06 7f | try i32 00002b: 01 | nop diff --git a/test/dump/try-imports.txt b/test/dump/try-imports.txt index 8a01dc5f..d911af0c 100644 --- a/test/dump/try-imports.txt +++ b/test/dump/try-imports.txt @@ -69,13 +69,18 @@ 0000035: 0b ; end 0000027: 0e ; FIXUP func body size 0000025: 10 ; FIXUP section size + try-imports.wasm: file format wasm 0x1 + Sections: + Type start=0x0000000a end=0x0000000f (size=0x00000005) count: 1 Import start=0x00000011 end=0x00000020 (size=0x0000000f) count: 1 Function start=0x00000022 end=0x00000024 (size=0x00000002) count: 1 Code start=0x00000026 end=0x00000036 (size=0x00000010) count: 1 + Code Disassembly: + 000027 func[0]: 000029: 06 7f | try i32 00002b: 01 | nop diff --git a/test/dump/try.txt b/test/dump/try.txt index 176d8f4c..b8cf7ac6 100644 --- a/test/dump/try.txt +++ b/test/dump/try.txt @@ -63,14 +63,19 @@ 0000033: 0b ; end 0000025: 0e ; FIXUP func body size 0000023: 10 ; FIXUP section size + try.wasm: file format wasm 0x1 + Sections: + Type start=0x0000000a end=0x0000000f (size=0x00000005) count: 1 Function start=0x00000011 end=0x00000013 (size=0x00000002) count: 1 Custom start=0x00000015 end=0x00000022 (size=0x0000000d) "exception" count: 1 Code start=0x00000024 end=0x00000034 (size=0x00000010) count: 1 + Code Disassembly: + 000025 func[0]: 000027: 06 7f | try i32 000029: 01 | nop diff --git a/test/exceptions/bad-throw.txt b/test/exceptions/bad-throw.txt index 5a9a17dc..2a280e50 100644 --- a/test/exceptions/bad-throw.txt +++ b/test/exceptions/bad-throw.txt @@ -9,7 +9,7 @@ ) ) (;; STDERR ;;; -out/test/exceptions/bad-throw.txt:8:6: type mismatch in throw, expected i32 but got i64. +out/test/exceptions/bad-throw.txt:8:6: error: type mismatch in throw, expected i32 but got i64. (throw $ex) ^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/exceptions/bad-try.txt b/test/exceptions/bad-try.txt index c7fa9326..2321da47 100644 --- a/test/exceptions/bad-try.txt +++ b/test/exceptions/bad-try.txt @@ -15,10 +15,10 @@ ) ) (;; STDERR ;;; -out/test/exceptions/bad-try.txt:5:6: opcode not allowed: try +out/test/exceptions/bad-try.txt:5:6: error: opcode not allowed: try (try $try1 (result i32) ^^^ -out/test/exceptions/bad-try.txt:12:10: opcode not allowed: rethrow +out/test/exceptions/bad-try.txt:12:10: error: opcode not allowed: rethrow (rethrow $try1) ^^^^^^^ ;;; STDERR ;;) diff --git a/test/exceptions/catch-all-not-last.txt b/test/exceptions/catch-all-not-last.txt index fae1c34d..ee7aa4a4 100644 --- a/test/exceptions/catch-all-not-last.txt +++ b/test/exceptions/catch-all-not-last.txt @@ -20,7 +20,7 @@ ) ) (;; STDERR ;;; -out/test/exceptions/catch-all-not-last.txt:16:8: Appears after catch all block +out/test/exceptions/catch-all-not-last.txt:16:8: error: Appears after catch all block (catch $ex ^^^^^ ;;; STDERR ;;) diff --git a/test/exceptions/rethrow-not-in-catch.txt b/test/exceptions/rethrow-not-in-catch.txt index 17cfb02c..27d06e94 100644 --- a/test/exceptions/rethrow-not-in-catch.txt +++ b/test/exceptions/rethrow-not-in-catch.txt @@ -14,7 +14,7 @@ ) ) (;; STDERR ;;; -out/test/exceptions/rethrow-not-in-catch.txt:9:8: Rethrow not in try catch block +out/test/exceptions/rethrow-not-in-catch.txt:9:8: error: Rethrow not in try catch block (rethrow $try1) ^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/exceptions/rethrow-to-wrong-block.txt b/test/exceptions/rethrow-to-wrong-block.txt index 75c4cace..0fbbc03a 100644 --- a/test/exceptions/rethrow-to-wrong-block.txt +++ b/test/exceptions/rethrow-to-wrong-block.txt @@ -14,7 +14,7 @@ ) ) (;; STDERR ;;; -out/test/exceptions/rethrow-to-wrong-block.txt:10:12: invalid rethrow depth: 1 (catches: 0) +out/test/exceptions/rethrow-to-wrong-block.txt:10:12: error: invalid rethrow depth: 1 (catches: 0) (rethrow $b) ^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-before-module.txt b/test/parse/assert/bad-assert-before-module.txt index 94c82392..031b6203 100644 --- a/test/parse/assert/bad-assert-before-module.txt +++ b/test/parse/assert/bad-assert-before-module.txt @@ -2,7 +2,7 @@ ;;; ERROR: 1 (assert_return (invoke "f") (i32.const 0)) (;; STDERR ;;; -out/test/parse/assert/bad-assert-before-module.txt:3:17: unknown module +out/test/parse/assert/bad-assert-before-module.txt:3:17: error: unknown module (assert_return (invoke "f") (i32.const 0)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-arithmetic-nan-invalid-return-type.txt b/test/parse/assert/bad-assert-return-arithmetic-nan-invalid-return-type.txt index 417a8193..08bf4bc8 100644 --- a/test/parse/assert/bad-assert-return-arithmetic-nan-invalid-return-type.txt +++ b/test/parse/assert/bad-assert-return-arithmetic-nan-invalid-return-type.txt @@ -7,7 +7,7 @@ (assert_return_arithmetic_nan (invoke "foo")) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-arithmetic-nan-invalid-return-type.txt:8:32: type mismatch at action. got i32, expected f32 or f64 +out/test/parse/assert/bad-assert-return-arithmetic-nan-invalid-return-type.txt:8:32: error: type mismatch at action. got i32, expected f32 or f64 (assert_return_arithmetic_nan (invoke "foo")) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-arithmetic-nan-too-few.txt b/test/parse/assert/bad-assert-return-arithmetic-nan-too-few.txt index 7cb624c7..fe1a5ca6 100644 --- a/test/parse/assert/bad-assert-return-arithmetic-nan-too-few.txt +++ b/test/parse/assert/bad-assert-return-arithmetic-nan-too-few.txt @@ -6,7 +6,7 @@ (export "foo" (func $foo))) (assert_return_arithmetic_nan (invoke "foo")) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-arithmetic-nan-too-few.txt:7:32: too few parameters to function. got 0, expected 1 +out/test/parse/assert/bad-assert-return-arithmetic-nan-too-few.txt:7:32: error: too few parameters to function. got 0, expected 1 (assert_return_arithmetic_nan (invoke "foo")) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-arithmetic-nan-too-many.txt b/test/parse/assert/bad-assert-return-arithmetic-nan-too-many.txt index 971893b6..0a73e02a 100644 --- a/test/parse/assert/bad-assert-return-arithmetic-nan-too-many.txt +++ b/test/parse/assert/bad-assert-return-arithmetic-nan-too-many.txt @@ -6,7 +6,7 @@ (export "foo" (func $foo))) (assert_return_arithmetic_nan (invoke "foo" (f32.const 0))) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-arithmetic-nan-too-many.txt:7:32: too many parameters to function. got 1, expected 0 +out/test/parse/assert/bad-assert-return-arithmetic-nan-too-many.txt:7:32: error: too many parameters to function. got 1, expected 0 (assert_return_arithmetic_nan (invoke "foo" (f32.const 0))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-arithmetic-nan-unknown-function.txt b/test/parse/assert/bad-assert-return-arithmetic-nan-unknown-function.txt index e6c3956a..aba879ca 100644 --- a/test/parse/assert/bad-assert-return-arithmetic-nan-unknown-function.txt +++ b/test/parse/assert/bad-assert-return-arithmetic-nan-unknown-function.txt @@ -3,7 +3,7 @@ (module) (assert_return_arithmetic_nan (invoke "foo")) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-arithmetic-nan-unknown-function.txt:4:32: unknown function export "foo" +out/test/parse/assert/bad-assert-return-arithmetic-nan-unknown-function.txt:4:32: error: unknown function export "foo" (assert_return_arithmetic_nan (invoke "foo")) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-canonical-nan-invalid-return-type.txt b/test/parse/assert/bad-assert-return-canonical-nan-invalid-return-type.txt index 0daae22a..ae57b5b1 100644 --- a/test/parse/assert/bad-assert-return-canonical-nan-invalid-return-type.txt +++ b/test/parse/assert/bad-assert-return-canonical-nan-invalid-return-type.txt @@ -7,7 +7,7 @@ (assert_return_canonical_nan (invoke "foo")) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-canonical-nan-invalid-return-type.txt:8:31: type mismatch at action. got i32, expected f32 or f64 +out/test/parse/assert/bad-assert-return-canonical-nan-invalid-return-type.txt:8:31: error: type mismatch at action. got i32, expected f32 or f64 (assert_return_canonical_nan (invoke "foo")) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-canonical-nan-too-few.txt b/test/parse/assert/bad-assert-return-canonical-nan-too-few.txt index 995fab8a..8520a26a 100644 --- a/test/parse/assert/bad-assert-return-canonical-nan-too-few.txt +++ b/test/parse/assert/bad-assert-return-canonical-nan-too-few.txt @@ -6,7 +6,7 @@ (export "foo" (func $foo))) (assert_return_canonical_nan (invoke "foo")) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-canonical-nan-too-few.txt:7:31: too few parameters to function. got 0, expected 1 +out/test/parse/assert/bad-assert-return-canonical-nan-too-few.txt:7:31: error: too few parameters to function. got 0, expected 1 (assert_return_canonical_nan (invoke "foo")) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-canonical-nan-too-many.txt b/test/parse/assert/bad-assert-return-canonical-nan-too-many.txt index fd994e5b..8fef859b 100644 --- a/test/parse/assert/bad-assert-return-canonical-nan-too-many.txt +++ b/test/parse/assert/bad-assert-return-canonical-nan-too-many.txt @@ -6,7 +6,7 @@ (export "foo" (func $foo))) (assert_return_canonical_nan (invoke "foo" (f32.const 0))) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-canonical-nan-too-many.txt:7:31: too many parameters to function. got 1, expected 0 +out/test/parse/assert/bad-assert-return-canonical-nan-too-many.txt:7:31: error: too many parameters to function. got 1, expected 0 (assert_return_canonical_nan (invoke "foo" (f32.const 0))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assert-return-canonical-nan-unknown-function.txt b/test/parse/assert/bad-assert-return-canonical-nan-unknown-function.txt index 5d48f729..7f69f31e 100644 --- a/test/parse/assert/bad-assert-return-canonical-nan-unknown-function.txt +++ b/test/parse/assert/bad-assert-return-canonical-nan-unknown-function.txt @@ -3,7 +3,7 @@ (module) (assert_return_canonical_nan (invoke "foo")) (;; STDERR ;;; -out/test/parse/assert/bad-assert-return-canonical-nan-unknown-function.txt:4:31: unknown function export "foo" +out/test/parse/assert/bad-assert-return-canonical-nan-unknown-function.txt:4:31: error: unknown function export "foo" (assert_return_canonical_nan (invoke "foo")) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assertreturn-non-const.txt b/test/parse/assert/bad-assertreturn-non-const.txt index 5188ba54..69236336 100644 --- a/test/parse/assert/bad-assertreturn-non-const.txt +++ b/test/parse/assert/bad-assertreturn-non-const.txt @@ -11,7 +11,7 @@ (f32.add (f32.const 1) (f32.const 10))) (f32.const 11)) (;; STDERR ;;; -out/test/parse/assert/bad-assertreturn-non-const.txt:11:6: syntax error, unexpected BINARY, expecting CONST +out/test/parse/assert/bad-assertreturn-non-const.txt:11:6: error: syntax error, unexpected BINARY, expecting CONST (f32.add (f32.const 1) (f32.const 10))) ^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assertreturn-too-few.txt b/test/parse/assert/bad-assertreturn-too-few.txt index 3bc0e8b6..5c73c2ee 100644 --- a/test/parse/assert/bad-assertreturn-too-few.txt +++ b/test/parse/assert/bad-assertreturn-too-few.txt @@ -6,7 +6,7 @@ (export "foo" (func $foo))) (assert_return (invoke "foo") (i32.const 0)) (;; STDERR ;;; -out/test/parse/assert/bad-assertreturn-too-few.txt:7:17: too few parameters to function. got 0, expected 1 +out/test/parse/assert/bad-assertreturn-too-few.txt:7:17: error: too few parameters to function. got 0, expected 1 (assert_return (invoke "foo") (i32.const 0)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assertreturn-too-many.txt b/test/parse/assert/bad-assertreturn-too-many.txt index 0481db3b..3ea0637e 100644 --- a/test/parse/assert/bad-assertreturn-too-many.txt +++ b/test/parse/assert/bad-assertreturn-too-many.txt @@ -6,7 +6,7 @@ (export "foo" (func $foo))) (assert_return (invoke "foo" (i32.const 0)) (i32.const 0)) (;; STDERR ;;; -out/test/parse/assert/bad-assertreturn-too-many.txt:7:17: too many parameters to function. got 1, expected 0 +out/test/parse/assert/bad-assertreturn-too-many.txt:7:17: error: too many parameters to function. got 1, expected 0 (assert_return (invoke "foo" (i32.const 0)) (i32.const 0)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-assertreturn-unknown-function.txt b/test/parse/assert/bad-assertreturn-unknown-function.txt index bf83d4cc..c4f981f7 100644 --- a/test/parse/assert/bad-assertreturn-unknown-function.txt +++ b/test/parse/assert/bad-assertreturn-unknown-function.txt @@ -3,7 +3,7 @@ (module) (assert_return (invoke "foo") (i32.const 0)) (;; STDERR ;;; -out/test/parse/assert/bad-assertreturn-unknown-function.txt:4:17: unknown function export "foo" +out/test/parse/assert/bad-assertreturn-unknown-function.txt:4:17: error: unknown function export "foo" (assert_return (invoke "foo") (i32.const 0)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-invoke-no-module.txt b/test/parse/assert/bad-invoke-no-module.txt index b8137b6d..a761c5a2 100644 --- a/test/parse/assert/bad-invoke-no-module.txt +++ b/test/parse/assert/bad-invoke-no-module.txt @@ -2,7 +2,7 @@ ;;; FLAGS: --spec (invoke "foo") (;; STDERR ;;; -out/test/parse/assert/bad-invoke-no-module.txt:3:2: unknown module +out/test/parse/assert/bad-invoke-no-module.txt:3:2: error: unknown module (invoke "foo") ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-invoke-too-few.txt b/test/parse/assert/bad-invoke-too-few.txt index ccde7819..4554cb8f 100644 --- a/test/parse/assert/bad-invoke-too-few.txt +++ b/test/parse/assert/bad-invoke-too-few.txt @@ -5,7 +5,7 @@ (export "foo" (func 0))) (invoke "foo") (;; STDERR ;;; -out/test/parse/assert/bad-invoke-too-few.txt:6:2: too few parameters to function. got 0, expected 1 +out/test/parse/assert/bad-invoke-too-few.txt:6:2: error: too few parameters to function. got 0, expected 1 (invoke "foo") ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-invoke-too-many.txt b/test/parse/assert/bad-invoke-too-many.txt index 2d44a9c8..cd2df9bd 100644 --- a/test/parse/assert/bad-invoke-too-many.txt +++ b/test/parse/assert/bad-invoke-too-many.txt @@ -5,7 +5,7 @@ (export "foo" (func 0))) (invoke "foo" (i32.const 0) (i32.const 1)) (;; STDERR ;;; -out/test/parse/assert/bad-invoke-too-many.txt:6:2: too many parameters to function. got 2, expected 1 +out/test/parse/assert/bad-invoke-too-many.txt:6:2: error: too many parameters to function. got 2, expected 1 (invoke "foo" (i32.const 0) (i32.const 1)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/assert/bad-invoke-unknown-function.txt b/test/parse/assert/bad-invoke-unknown-function.txt index fb4875e7..26f0c0ff 100644 --- a/test/parse/assert/bad-invoke-unknown-function.txt +++ b/test/parse/assert/bad-invoke-unknown-function.txt @@ -6,7 +6,7 @@ (invoke "bar") (;; STDERR ;;; -out/test/parse/assert/bad-invoke-unknown-function.txt:7:2: unknown function export "bar" +out/test/parse/assert/bad-invoke-unknown-function.txt:7:2: error: unknown function export "bar" (invoke "bar") ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/bad-crlf.txt b/test/parse/bad-crlf.txt index ffb40991..8156be62 100644 --- a/test/parse/bad-crlf.txt +++ b/test/parse/bad-crlf.txt @@ -2,10 +2,10 @@ modulez
funcz
(;; STDERR ;;; -out/test/parse/bad-crlf.txt:2:1: unexpected token "modulez" +out/test/parse/bad-crlf.txt:2:1: error: unexpected token "modulez" modulez ^^^^^^^ -out/test/parse/bad-crlf.txt:3:1: unexpected token "funcz" +out/test/parse/bad-crlf.txt:3:1: error: unexpected token "funcz" funcz ^^^^^ ;;; STDERR ;;) diff --git a/test/parse/bad-error-long-line.txt b/test/parse/bad-error-long-line.txt index 706169b6..c9089b23 100644 --- a/test/parse/bad-error-long-line.txt +++ b/test/parse/bad-error-long-line.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 whoops (; some text at the end of the line ;) (;; STDERR ;;; -out/test/parse/bad-error-long-line.txt:2:170: unexpected token "whoops" +out/test/parse/bad-error-long-line.txt:2:170: error: unexpected token "whoops" ... whoops (; some text... ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/bad-error-long-token.txt b/test/parse/bad-error-long-token.txt index e2abf73f..fce3fd2c 100644 --- a/test/parse/bad-error-long-token.txt +++ b/test/parse/bad-error-long-token.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz (;; STDERR ;;; -out/test/parse/bad-error-long-token.txt:2:15: unexpected token "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" +out/test/parse/bad-error-long-token.txt:2:15: error: unexpected token "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/bad-single-semicolon.txt b/test/parse/bad-single-semicolon.txt index e60cc9ee..9cefc4b5 100644 --- a/test/parse/bad-single-semicolon.txt +++ b/test/parse/bad-single-semicolon.txt @@ -2,13 +2,13 @@ ; foo bar (module) (;; STDERR ;;; -out/test/parse/bad-single-semicolon.txt:2:1: unexpected char +out/test/parse/bad-single-semicolon.txt:2:1: error: unexpected char ; foo bar ^ -out/test/parse/bad-single-semicolon.txt:2:3: unexpected token "foo" +out/test/parse/bad-single-semicolon.txt:2:3: error: unexpected token "foo" ; foo bar ^^^ -out/test/parse/bad-single-semicolon.txt:2:7: unexpected token "bar" +out/test/parse/bad-single-semicolon.txt:2:7: error: unexpected token "bar" ; foo bar ^^^ ;;; STDERR ;;) diff --git a/test/parse/bad-string-eof.txt b/test/parse/bad-string-eof.txt index 1be082f0..f0bc423f 100644 --- a/test/parse/bad-string-eof.txt +++ b/test/parse/bad-string-eof.txt @@ -1,8 +1,8 @@ ;;; ERROR: 1 (module (func) (export " (;; STDERR ;;; -out/test/parse/bad-string-eof.txt:2:25: newline in string +out/test/parse/bad-string-eof.txt:2:25: error: newline in string (module (func) (export " ^ -out/test/parse/bad-string-eof.txt:3:2: syntax error, unexpected EOF, expecting TEXT +out/test/parse/bad-string-eof.txt:3:2: error: syntax error, unexpected EOF, expecting TEXT ;;; STDERR ;;) diff --git a/test/parse/bad-string-escape.txt b/test/parse/bad-string-escape.txt index 3f8e1cfb..53a417bb 100644 --- a/test/parse/bad-string-escape.txt +++ b/test/parse/bad-string-escape.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func) (export "foobar\x\n" (func 0))) (;; STDERR ;;; -out/test/parse/bad-string-escape.txt:2:31: bad escape "\x" +out/test/parse/bad-string-escape.txt:2:31: error: bad escape "\x" (module (func) (export "foobar\x\n" (func 0))) ^^ ;;; STDERR ;;) diff --git a/test/parse/bad-string-hex-escape.txt b/test/parse/bad-string-hex-escape.txt index 54896a8e..8bbdeeb9 100644 --- a/test/parse/bad-string-hex-escape.txt +++ b/test/parse/bad-string-hex-escape.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func) (export "foo\az" (func 0))) (;; STDERR ;;; -out/test/parse/bad-string-hex-escape.txt:2:28: bad escape "\a" +out/test/parse/bad-string-hex-escape.txt:2:28: error: bad escape "\a" (module (func) (export "foo\az" (func 0))) ^^ ;;; STDERR ;;) diff --git a/test/parse/bad-toplevel.txt b/test/parse/bad-toplevel.txt index b7e5685e..eae0ee74 100644 --- a/test/parse/bad-toplevel.txt +++ b/test/parse/bad-toplevel.txt @@ -1,13 +1,13 @@ ;;; ERROR: 1 (foo bar) (;; STDERR ;;; -out/test/parse/bad-toplevel.txt:2:2: unexpected token "foo" +out/test/parse/bad-toplevel.txt:2:2: error: unexpected token "foo" (foo bar) ^^^ -out/test/parse/bad-toplevel.txt:2:6: unexpected token "bar" +out/test/parse/bad-toplevel.txt:2:6: error: unexpected token "bar" (foo bar) ^^^ -out/test/parse/bad-toplevel.txt:2:9: syntax error, unexpected ) +out/test/parse/bad-toplevel.txt:2:9: error: syntax error, unexpected ) (foo bar) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-binary-one-expr.txt b/test/parse/expr/bad-binary-one-expr.txt index f7472436..f4f0cf33 100644 --- a/test/parse/expr/bad-binary-one-expr.txt +++ b/test/parse/expr/bad-binary-one-expr.txt @@ -3,10 +3,10 @@ i32.const 0 i32.add)) (;; STDERR ;;; -out/test/parse/expr/bad-binary-one-expr.txt:4:4: type stack size too small at i32.add. got 1, expected at least 2 +out/test/parse/expr/bad-binary-one-expr.txt:4:4: error: type stack size too small at i32.add. got 1, expected at least 2 i32.add)) ^^^^^^^ -out/test/parse/expr/bad-binary-one-expr.txt:4:4: type stack at end of function is 1, expected 0 +out/test/parse/expr/bad-binary-one-expr.txt:4:4: error: type stack at end of function is 1, expected 0 i32.add)) ^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-block-end-label.txt b/test/parse/expr/bad-block-end-label.txt index 9e927e0a..e2352012 100644 --- a/test/parse/expr/bad-block-end-label.txt +++ b/test/parse/expr/bad-block-end-label.txt @@ -4,7 +4,7 @@ block end $foo)) (;; STDERR ;;; -out/test/parse/expr/bad-block-end-label.txt:5:9: unexpected label "$foo" +out/test/parse/expr/bad-block-end-label.txt:5:9: error: unexpected label "$foo" end $foo)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-block-mismatch-label.txt b/test/parse/expr/bad-block-mismatch-label.txt index c2c9fed1..a95a0ee7 100644 --- a/test/parse/expr/bad-block-mismatch-label.txt +++ b/test/parse/expr/bad-block-mismatch-label.txt @@ -4,7 +4,7 @@ block $foo end $bar)) (;; STDERR ;;; -out/test/parse/expr/bad-block-mismatch-label.txt:5:9: mismatching label "$foo" != "$bar" +out/test/parse/expr/bad-block-mismatch-label.txt:5:9: error: mismatching label "$foo" != "$bar" end $bar)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-block-sig-multi.txt b/test/parse/expr/bad-block-sig-multi.txt index 294abe4e..bae4cdae 100644 --- a/test/parse/expr/bad-block-sig-multi.txt +++ b/test/parse/expr/bad-block-sig-multi.txt @@ -8,7 +8,7 @@ drop drop)) (;; STDERR ;;; -out/test/parse/expr/bad-block-sig-multi.txt:4:5: multiple block signature result types not currently supported. +out/test/parse/expr/bad-block-sig-multi.txt:4:5: error: multiple block signature result types not currently supported. block (result i32 i32) ^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-br-bad-depth.txt b/test/parse/expr/bad-br-bad-depth.txt index ffd55f75..8689111d 100644 --- a/test/parse/expr/bad-br-bad-depth.txt +++ b/test/parse/expr/bad-br-bad-depth.txt @@ -7,7 +7,7 @@ end end)) (;; STDERR ;;; -out/test/parse/expr/bad-br-bad-depth.txt:6:9: invalid depth: 3 (max 2) +out/test/parse/expr/bad-br-bad-depth.txt:6:9: error: invalid depth: 3 (max 2) br 3 ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-br-defined-later.txt b/test/parse/expr/bad-br-defined-later.txt index 82f215da..515415f5 100644 --- a/test/parse/expr/bad-br-defined-later.txt +++ b/test/parse/expr/bad-br-defined-later.txt @@ -6,7 +6,7 @@ nop end)) (;; STDERR ;;; -out/test/parse/expr/bad-br-defined-later.txt:4:5: invalid depth: 1 (max 0) +out/test/parse/expr/bad-br-defined-later.txt:4:5: error: invalid depth: 1 (max 0) br 1 ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-br-name-undefined.txt b/test/parse/expr/bad-br-name-undefined.txt index 96c432b8..0b139128 100644 --- a/test/parse/expr/bad-br-name-undefined.txt +++ b/test/parse/expr/bad-br-name-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func br $n)) (;; STDERR ;;; -out/test/parse/expr/bad-br-name-undefined.txt:2:18: undefined label variable "$n" +out/test/parse/expr/bad-br-name-undefined.txt:2:18: error: undefined label variable "$n" (module (func br $n)) ^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-br-name.txt b/test/parse/expr/bad-br-name.txt index f7a9e62b..98404d5f 100644 --- a/test/parse/expr/bad-br-name.txt +++ b/test/parse/expr/bad-br-name.txt @@ -4,10 +4,10 @@ br foo end)) (;; STDERR ;;; -out/test/parse/expr/bad-br-name.txt:4:16: unexpected token "foo" +out/test/parse/expr/bad-br-name.txt:4:16: error: unexpected token "foo" br foo ^^^ -out/test/parse/expr/bad-br-name.txt:5:11: syntax error, unexpected END, expecting NAT or VAR +out/test/parse/expr/bad-br-name.txt:5:11: error: syntax error, unexpected END, expecting NAT or VAR end)) ^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-br-no-depth.txt b/test/parse/expr/bad-br-no-depth.txt index c70ef114..7799de77 100644 --- a/test/parse/expr/bad-br-no-depth.txt +++ b/test/parse/expr/bad-br-no-depth.txt @@ -5,7 +5,7 @@ br end)) (;; STDERR ;;; -out/test/parse/expr/bad-br-no-depth.txt:6:5: syntax error, unexpected END, expecting NAT or VAR +out/test/parse/expr/bad-br-no-depth.txt:6:5: error: syntax error, unexpected END, expecting NAT or VAR end)) ^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-br-undefined.txt b/test/parse/expr/bad-br-undefined.txt index 817ed38b..6670402a 100644 --- a/test/parse/expr/bad-br-undefined.txt +++ b/test/parse/expr/bad-br-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func br 1)) (;; STDERR ;;; -out/test/parse/expr/bad-br-undefined.txt:2:15: invalid depth: 1 (max 0) +out/test/parse/expr/bad-br-undefined.txt:2:15: error: invalid depth: 1 (max 0) (module (func br 1)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-brtable-bad-depth.txt b/test/parse/expr/bad-brtable-bad-depth.txt index e375ae4f..bf986814 100644 --- a/test/parse/expr/bad-brtable-bad-depth.txt +++ b/test/parse/expr/bad-brtable-bad-depth.txt @@ -6,7 +6,7 @@ br_table 2 end)) (;; STDERR ;;; -out/test/parse/expr/bad-brtable-bad-depth.txt:6:7: invalid depth: 2 (max 1) +out/test/parse/expr/bad-brtable-bad-depth.txt:6:7: error: invalid depth: 2 (max 1) br_table 2 ^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-compare-one-expr.txt b/test/parse/expr/bad-compare-one-expr.txt index 7688b6db..5c1eb779 100644 --- a/test/parse/expr/bad-compare-one-expr.txt +++ b/test/parse/expr/bad-compare-one-expr.txt @@ -3,10 +3,10 @@ i32.const 0 i32.lt_s)) (;; STDERR ;;; -out/test/parse/expr/bad-compare-one-expr.txt:4:11: type stack size too small at i32.lt_s. got 1, expected at least 2 +out/test/parse/expr/bad-compare-one-expr.txt:4:11: error: type stack size too small at i32.lt_s. got 1, expected at least 2 i32.lt_s)) ^^^^^^^^ -out/test/parse/expr/bad-compare-one-expr.txt:4:11: type stack at end of function is 1, expected 0 +out/test/parse/expr/bad-compare-one-expr.txt:4:11: error: type stack at end of function is 1, expected 0 i32.lt_s)) ^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-const-f32-trailing.txt b/test/parse/expr/bad-const-f32-trailing.txt index abd51a9c..6f19087f 100644 --- a/test/parse/expr/bad-const-f32-trailing.txt +++ b/test/parse/expr/bad-const-f32-trailing.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (func f32.const 1234.5678foo)) (;; STDERR ;;; -out/test/parse/expr/bad-const-f32-trailing.txt:2:25: unexpected token "1234.5678foo" +out/test/parse/expr/bad-const-f32-trailing.txt:2:25: error: unexpected token "1234.5678foo" (module (func f32.const 1234.5678foo)) ^^^^^^^^^^^^ -out/test/parse/expr/bad-const-f32-trailing.txt:2:37: syntax error, unexpected ), expecting NAT or INT or FLOAT +out/test/parse/expr/bad-const-f32-trailing.txt:2:37: error: syntax error, unexpected ), expecting NAT or INT or FLOAT (module (func f32.const 1234.5678foo)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-const-i32-garbage.txt b/test/parse/expr/bad-const-i32-garbage.txt index 9081dddd..ba02c922 100644 --- a/test/parse/expr/bad-const-i32-garbage.txt +++ b/test/parse/expr/bad-const-i32-garbage.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (func i32.const one-hundred)) (;; STDERR ;;; -out/test/parse/expr/bad-const-i32-garbage.txt:2:25: unexpected token "one-hundred" +out/test/parse/expr/bad-const-i32-garbage.txt:2:25: error: unexpected token "one-hundred" (module (func i32.const one-hundred)) ^^^^^^^^^^^ -out/test/parse/expr/bad-const-i32-garbage.txt:2:36: syntax error, unexpected ), expecting NAT or INT or FLOAT +out/test/parse/expr/bad-const-i32-garbage.txt:2:36: error: syntax error, unexpected ), expecting NAT or INT or FLOAT (module (func i32.const one-hundred)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-const-i32-just-negative-sign.txt b/test/parse/expr/bad-const-i32-just-negative-sign.txt index 3a3667cc..7a74246b 100644 --- a/test/parse/expr/bad-const-i32-just-negative-sign.txt +++ b/test/parse/expr/bad-const-i32-just-negative-sign.txt @@ -2,10 +2,10 @@ (module (func i32.const -)) (;; STDERR ;;; -out/test/parse/expr/bad-const-i32-just-negative-sign.txt:3:19: unexpected token "-" +out/test/parse/expr/bad-const-i32-just-negative-sign.txt:3:19: error: unexpected token "-" (func i32.const -)) ^ -out/test/parse/expr/bad-const-i32-just-negative-sign.txt:3:20: syntax error, unexpected ), expecting NAT or INT or FLOAT +out/test/parse/expr/bad-const-i32-just-negative-sign.txt:3:20: error: syntax error, unexpected ), expecting NAT or INT or FLOAT (func i32.const -)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-const-i32-overflow.txt b/test/parse/expr/bad-const-i32-overflow.txt index 7ab37814..d99bcffc 100644 --- a/test/parse/expr/bad-const-i32-overflow.txt +++ b/test/parse/expr/bad-const-i32-overflow.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func i32.const 4294967296)) (;; STDERR ;;; -out/test/parse/expr/bad-const-i32-overflow.txt:2:25: invalid literal "4294967296" +out/test/parse/expr/bad-const-i32-overflow.txt:2:25: error: invalid literal "4294967296" (module (func i32.const 4294967296)) ^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-const-i32-trailing.txt b/test/parse/expr/bad-const-i32-trailing.txt index a0a25c16..73a7d0ed 100644 --- a/test/parse/expr/bad-const-i32-trailing.txt +++ b/test/parse/expr/bad-const-i32-trailing.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (func i32.const 100x)) (;; STDERR ;;; -out/test/parse/expr/bad-const-i32-trailing.txt:2:25: unexpected token "100x" +out/test/parse/expr/bad-const-i32-trailing.txt:2:25: error: unexpected token "100x" (module (func i32.const 100x)) ^^^^ -out/test/parse/expr/bad-const-i32-trailing.txt:2:29: syntax error, unexpected ), expecting NAT or INT or FLOAT +out/test/parse/expr/bad-const-i32-trailing.txt:2:29: error: syntax error, unexpected ), expecting NAT or INT or FLOAT (module (func i32.const 100x)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-const-i32-underflow.txt b/test/parse/expr/bad-const-i32-underflow.txt index e9927ece..45117779 100644 --- a/test/parse/expr/bad-const-i32-underflow.txt +++ b/test/parse/expr/bad-const-i32-underflow.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func i32.const -2147483649)) (;; STDERR ;;; -out/test/parse/expr/bad-const-i32-underflow.txt:2:25: invalid literal "-2147483649" +out/test/parse/expr/bad-const-i32-underflow.txt:2:25: error: invalid literal "-2147483649" (module (func i32.const -2147483649)) ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-const-i64-overflow.txt b/test/parse/expr/bad-const-i64-overflow.txt index cda4c486..aaf7d433 100644 --- a/test/parse/expr/bad-const-i64-overflow.txt +++ b/test/parse/expr/bad-const-i64-overflow.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func i64.const 18446744073709551616)) (;; STDERR ;;; -out/test/parse/expr/bad-const-i64-overflow.txt:2:25: invalid literal "18446744073709551616" +out/test/parse/expr/bad-const-i64-overflow.txt:2:25: error: invalid literal "18446744073709551616" (module (func i64.const 18446744073709551616)) ^^^^^^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-convert-float-sign.txt b/test/parse/expr/bad-convert-float-sign.txt index 59989278..f960c03a 100644 --- a/test/parse/expr/bad-convert-float-sign.txt +++ b/test/parse/expr/bad-convert-float-sign.txt @@ -3,7 +3,7 @@ f32.const 0 f32.converts.f64)) (;; STDERR ;;; -out/test/parse/expr/bad-convert-float-sign.txt:4:11: unexpected token "f32.converts.f64" +out/test/parse/expr/bad-convert-float-sign.txt:4:11: error: unexpected token "f32.converts.f64" f32.converts.f64)) ^^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-convert-int-no-sign.txt b/test/parse/expr/bad-convert-int-no-sign.txt index 98238294..e2ac0892 100644 --- a/test/parse/expr/bad-convert-int-no-sign.txt +++ b/test/parse/expr/bad-convert-int-no-sign.txt @@ -3,10 +3,10 @@ i32.const i32.convert.i32)) (;; STDERR ;;; -out/test/parse/expr/bad-convert-int-no-sign.txt:4:11: unexpected token "i32.convert.i32" +out/test/parse/expr/bad-convert-int-no-sign.txt:4:11: error: unexpected token "i32.convert.i32" i32.convert.i32)) ^^^^^^^^^^^^^^^ -out/test/parse/expr/bad-convert-int-no-sign.txt:4:26: syntax error, unexpected ), expecting NAT or INT or FLOAT +out/test/parse/expr/bad-convert-int-no-sign.txt:4:26: error: syntax error, unexpected ), expecting NAT or INT or FLOAT i32.convert.i32)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-getglobal-name-undefined.txt b/test/parse/expr/bad-getglobal-name-undefined.txt index 54cd35e5..873b8bd0 100644 --- a/test/parse/expr/bad-getglobal-name-undefined.txt +++ b/test/parse/expr/bad-getglobal-name-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func get_global $n)) (;; STDERR ;;; -out/test/parse/expr/bad-getglobal-name-undefined.txt:2:26: undefined global variable "$n" +out/test/parse/expr/bad-getglobal-name-undefined.txt:2:26: error: undefined global variable "$n" (module (func get_global $n)) ^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-getglobal-undefined.txt b/test/parse/expr/bad-getglobal-undefined.txt index bd2e9598..0340d25e 100644 --- a/test/parse/expr/bad-getglobal-undefined.txt +++ b/test/parse/expr/bad-getglobal-undefined.txt @@ -4,7 +4,7 @@ get_global 0 drop)) (;; STDERR ;;; -out/test/parse/expr/bad-getglobal-undefined.txt:4:16: global variable out of range (max 0) +out/test/parse/expr/bad-getglobal-undefined.txt:4:16: error: global variable out of range (max 0) get_global 0 ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-getlocal-name-undefined.txt b/test/parse/expr/bad-getlocal-name-undefined.txt index 10cef6f1..3c5c1c44 100644 --- a/test/parse/expr/bad-getlocal-name-undefined.txt +++ b/test/parse/expr/bad-getlocal-name-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func get_local $n)) (;; STDERR ;;; -out/test/parse/expr/bad-getlocal-name-undefined.txt:2:25: undefined local variable "$n" +out/test/parse/expr/bad-getlocal-name-undefined.txt:2:25: error: undefined local variable "$n" (module (func get_local $n)) ^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-getlocal-name.txt b/test/parse/expr/bad-getlocal-name.txt index 4505f2a2..01741b0f 100644 --- a/test/parse/expr/bad-getlocal-name.txt +++ b/test/parse/expr/bad-getlocal-name.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (func (local $f f32) get_local f)) (;; STDERR ;;; -out/test/parse/expr/bad-getlocal-name.txt:2:40: unexpected token "f" +out/test/parse/expr/bad-getlocal-name.txt:2:40: error: unexpected token "f" (module (func (local $f f32) get_local f)) ^ -out/test/parse/expr/bad-getlocal-name.txt:2:41: syntax error, unexpected ), expecting NAT or VAR +out/test/parse/expr/bad-getlocal-name.txt:2:41: error: syntax error, unexpected ), expecting NAT or VAR (module (func (local $f f32) get_local f)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-getlocal-undefined.txt b/test/parse/expr/bad-getlocal-undefined.txt index 2b32d942..2883a72b 100644 --- a/test/parse/expr/bad-getlocal-undefined.txt +++ b/test/parse/expr/bad-getlocal-undefined.txt @@ -4,7 +4,7 @@ get_local 0 drop)) (;; STDERR ;;; -out/test/parse/expr/bad-getlocal-undefined.txt:4:15: local variable out of range (max 0) +out/test/parse/expr/bad-getlocal-undefined.txt:4:15: error: local variable out of range (max 0) get_local 0 ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-if-end-label.txt b/test/parse/expr/bad-if-end-label.txt index bc0d565a..decc8262 100644 --- a/test/parse/expr/bad-if-end-label.txt +++ b/test/parse/expr/bad-if-end-label.txt @@ -6,10 +6,10 @@ else $foo end $bar)) (;; STDERR ;;; -out/test/parse/expr/bad-if-end-label.txt:6:10: unexpected label "$foo" +out/test/parse/expr/bad-if-end-label.txt:6:10: error: unexpected label "$foo" else $foo ^^^^ -out/test/parse/expr/bad-if-end-label.txt:7:9: unexpected label "$bar" +out/test/parse/expr/bad-if-end-label.txt:7:9: error: unexpected label "$bar" end $bar)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-if-mismatch-label.txt b/test/parse/expr/bad-if-mismatch-label.txt index d9cec272..0b24f1e4 100644 --- a/test/parse/expr/bad-if-mismatch-label.txt +++ b/test/parse/expr/bad-if-mismatch-label.txt @@ -6,10 +6,10 @@ else $bar end $baz)) (;; STDERR ;;; -out/test/parse/expr/bad-if-mismatch-label.txt:6:10: mismatching label "$foo" != "$bar" +out/test/parse/expr/bad-if-mismatch-label.txt:6:10: error: mismatching label "$foo" != "$bar" else $bar ^^^^ -out/test/parse/expr/bad-if-mismatch-label.txt:7:9: mismatching label "$foo" != "$baz" +out/test/parse/expr/bad-if-mismatch-label.txt:7:9: error: mismatching label "$foo" != "$baz" end $baz)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-if-no-then.txt b/test/parse/expr/bad-if-no-then.txt index 23f28352..2e2b9a77 100644 --- a/test/parse/expr/bad-if-no-then.txt +++ b/test/parse/expr/bad-if-no-then.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (if (i32.const 0)))) (;; STDERR ;;; -out/test/parse/expr/bad-if-no-then.txt:2:32: syntax error, unexpected ), expecting ( +out/test/parse/expr/bad-if-no-then.txt:2:32: error: syntax error, unexpected ), expecting ( (module (func (if (i32.const 0)))) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-if-sig-multi.txt b/test/parse/expr/bad-if-sig-multi.txt index 8268553f..1c6d2d84 100644 --- a/test/parse/expr/bad-if-sig-multi.txt +++ b/test/parse/expr/bad-if-sig-multi.txt @@ -12,7 +12,7 @@ drop drop)) (;; STDERR ;;; -out/test/parse/expr/bad-if-sig-multi.txt:5:5: multiple if signature result types not currently supported. +out/test/parse/expr/bad-if-sig-multi.txt:5:5: error: multiple if signature result types not currently supported. if (result i32 i32) ^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-load-align-misspelled.txt b/test/parse/expr/bad-load-align-misspelled.txt index c23247af..8c215f9c 100644 --- a/test/parse/expr/bad-load-align-misspelled.txt +++ b/test/parse/expr/bad-load-align-misspelled.txt @@ -4,7 +4,7 @@ i32.const 0 i32.load aline=64)) (;; STDERR ;;; -out/test/parse/expr/bad-load-align-misspelled.txt:5:14: unexpected token "aline=64" +out/test/parse/expr/bad-load-align-misspelled.txt:5:14: error: unexpected token "aline=64" i32.load aline=64)) ^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-load-align-negative.txt b/test/parse/expr/bad-load-align-negative.txt index 8daef20b..a6639273 100644 --- a/test/parse/expr/bad-load-align-negative.txt +++ b/test/parse/expr/bad-load-align-negative.txt @@ -3,7 +3,7 @@ i32.const 0 i32.load8_s align=-1)) (;; STDERR ;;; -out/test/parse/expr/bad-load-align-negative.txt:4:23: unexpected token "align=-1" +out/test/parse/expr/bad-load-align-negative.txt:4:23: error: unexpected token "align=-1" i32.load8_s align=-1)) ^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-load-align-not-pot.txt b/test/parse/expr/bad-load-align-not-pot.txt index 3fbe3240..4605b10c 100644 --- a/test/parse/expr/bad-load-align-not-pot.txt +++ b/test/parse/expr/bad-load-align-not-pot.txt @@ -6,7 +6,7 @@ i32.load align=3 drop)) (;; STDERR ;;; -out/test/parse/expr/bad-load-align-not-pot.txt:6:14: alignment must be power-of-two +out/test/parse/expr/bad-load-align-not-pot.txt:6:14: error: alignment must be power-of-two i32.load align=3 ^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-load-align.txt b/test/parse/expr/bad-load-align.txt index a7806bb7..cff63f63 100644 --- a/test/parse/expr/bad-load-align.txt +++ b/test/parse/expr/bad-load-align.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (i32.load align=foo (i32.const 0)))) (;; STDERR ;;; -out/test/parse/expr/bad-load-align.txt:2:25: unexpected token "align=foo" +out/test/parse/expr/bad-load-align.txt:2:25: error: unexpected token "align=foo" (module (func (i32.load align=foo (i32.const 0)))) ^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-load-float-sign.txt b/test/parse/expr/bad-load-float-sign.txt index 260daf59..6a93b0aa 100644 --- a/test/parse/expr/bad-load-float-sign.txt +++ b/test/parse/expr/bad-load-float-sign.txt @@ -3,7 +3,7 @@ i32.const 0 f32.loads)) (;; STDERR ;;; -out/test/parse/expr/bad-load-float-sign.txt:4:11: unexpected token "f32.loads" +out/test/parse/expr/bad-load-float-sign.txt:4:11: error: unexpected token "f32.loads" f32.loads)) ^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-load-offset-negative.txt b/test/parse/expr/bad-load-offset-negative.txt index 9cf95709..c074e24e 100644 --- a/test/parse/expr/bad-load-offset-negative.txt +++ b/test/parse/expr/bad-load-offset-negative.txt @@ -3,7 +3,7 @@ i32.const 0 i32.load8_s offset=-1)) (;; STDERR ;;; -out/test/parse/expr/bad-load-offset-negative.txt:4:23: unexpected token "offset=-1" +out/test/parse/expr/bad-load-offset-negative.txt:4:23: error: unexpected token "offset=-1" i32.load8_s offset=-1)) ^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-load-type.txt b/test/parse/expr/bad-load-type.txt index 25d8d0fc..47fecae7 100644 --- a/test/parse/expr/bad-load-type.txt +++ b/test/parse/expr/bad-load-type.txt @@ -3,7 +3,7 @@ i32.const 0 load.x32)) (;; STDERR ;;; -out/test/parse/expr/bad-load-type.txt:4:11: unexpected token "load.x32" +out/test/parse/expr/bad-load-type.txt:4:11: error: unexpected token "load.x32" load.x32)) ^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-loop-end-label.txt b/test/parse/expr/bad-loop-end-label.txt index 5e33f3a9..c3f80e35 100644 --- a/test/parse/expr/bad-loop-end-label.txt +++ b/test/parse/expr/bad-loop-end-label.txt @@ -4,7 +4,7 @@ loop end $foo)) (;; STDERR ;;; -out/test/parse/expr/bad-loop-end-label.txt:5:9: unexpected label "$foo" +out/test/parse/expr/bad-loop-end-label.txt:5:9: error: unexpected label "$foo" end $foo)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-loop-mismatch-label.txt b/test/parse/expr/bad-loop-mismatch-label.txt index 7dab3d63..c0086c52 100644 --- a/test/parse/expr/bad-loop-mismatch-label.txt +++ b/test/parse/expr/bad-loop-mismatch-label.txt @@ -4,7 +4,7 @@ loop $foo end $bar)) (;; STDERR ;;; -out/test/parse/expr/bad-loop-mismatch-label.txt:5:9: mismatching label "$foo" != "$bar" +out/test/parse/expr/bad-loop-mismatch-label.txt:5:9: error: mismatching label "$foo" != "$bar" end $bar)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-loop-sig-multi.txt b/test/parse/expr/bad-loop-sig-multi.txt index 5069d191..fe0c24a0 100644 --- a/test/parse/expr/bad-loop-sig-multi.txt +++ b/test/parse/expr/bad-loop-sig-multi.txt @@ -8,7 +8,7 @@ drop drop)) (;; STDERR ;;; -out/test/parse/expr/bad-loop-sig-multi.txt:4:5: multiple loop signature result types not currently supported. +out/test/parse/expr/bad-loop-sig-multi.txt:4:5: error: multiple loop signature result types not currently supported. loop (result i32 i32) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-nop.txt b/test/parse/expr/bad-nop.txt index d70fa39b..0de7466f 100644 --- a/test/parse/expr/bad-nop.txt +++ b/test/parse/expr/bad-nop.txt @@ -3,7 +3,7 @@ nop foo)) (;; STDERR ;;; -out/test/parse/expr/bad-nop.txt:4:11: unexpected token "foo" +out/test/parse/expr/bad-nop.txt:4:11: error: unexpected token "foo" foo)) ^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-return-multi.txt b/test/parse/expr/bad-return-multi.txt index 4738b226..604d2b83 100644 --- a/test/parse/expr/bad-return-multi.txt +++ b/test/parse/expr/bad-return-multi.txt @@ -4,7 +4,7 @@ f32.const 3.14 return)) (;; STDERR ;;; -out/test/parse/expr/bad-return-multi.txt:2:10: multiple result values not currently supported. +out/test/parse/expr/bad-return-multi.txt:2:10: error: multiple result values not currently supported. (module (func (result f32 f32) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-setglobal-name-undefined.txt b/test/parse/expr/bad-setglobal-name-undefined.txt index 25caf9d5..2e1174f4 100644 --- a/test/parse/expr/bad-setglobal-name-undefined.txt +++ b/test/parse/expr/bad-setglobal-name-undefined.txt @@ -3,7 +3,7 @@ i32.const 1 set_global $f)) (;; STDERR ;;; -out/test/parse/expr/bad-setglobal-name-undefined.txt:4:22: undefined global variable "$f" +out/test/parse/expr/bad-setglobal-name-undefined.txt:4:22: error: undefined global variable "$f" set_global $f)) ^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-setglobal-undefined.txt b/test/parse/expr/bad-setglobal-undefined.txt index 3a24cf3b..e069b695 100644 --- a/test/parse/expr/bad-setglobal-undefined.txt +++ b/test/parse/expr/bad-setglobal-undefined.txt @@ -3,7 +3,7 @@ i32.const 1 set_global 0)) (;; STDERR ;;; -out/test/parse/expr/bad-setglobal-undefined.txt:4:22: global variable out of range (max 0) +out/test/parse/expr/bad-setglobal-undefined.txt:4:22: error: global variable out of range (max 0) set_global 0)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-setlocal-name-undefined.txt b/test/parse/expr/bad-setlocal-name-undefined.txt index 06d55b93..8f48c628 100644 --- a/test/parse/expr/bad-setlocal-name-undefined.txt +++ b/test/parse/expr/bad-setlocal-name-undefined.txt @@ -3,7 +3,7 @@ i32.const 0 set_local $n)) (;; STDERR ;;; -out/test/parse/expr/bad-setlocal-name-undefined.txt:4:21: undefined local variable "$n" +out/test/parse/expr/bad-setlocal-name-undefined.txt:4:21: error: undefined local variable "$n" set_local $n)) ^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-setlocal-name.txt b/test/parse/expr/bad-setlocal-name.txt index d7bf2875..82d5872c 100644 --- a/test/parse/expr/bad-setlocal-name.txt +++ b/test/parse/expr/bad-setlocal-name.txt @@ -4,10 +4,10 @@ i32.const 0 set_local n)) (;; STDERR ;;; -out/test/parse/expr/bad-setlocal-name.txt:5:13: unexpected token "n" +out/test/parse/expr/bad-setlocal-name.txt:5:13: error: unexpected token "n" set_local n)) ^ -out/test/parse/expr/bad-setlocal-name.txt:5:14: syntax error, unexpected ), expecting NAT or VAR +out/test/parse/expr/bad-setlocal-name.txt:5:14: error: syntax error, unexpected ), expecting NAT or VAR set_local n)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-setlocal-no-value.txt b/test/parse/expr/bad-setlocal-no-value.txt index a8e87d66..1ad7a322 100644 --- a/test/parse/expr/bad-setlocal-no-value.txt +++ b/test/parse/expr/bad-setlocal-no-value.txt @@ -3,7 +3,7 @@ (local i32) set_local 0)) (;; STDERR ;;; -out/test/parse/expr/bad-setlocal-no-value.txt:4:3: type stack size too small at set_local. got 0, expected at least 1 +out/test/parse/expr/bad-setlocal-no-value.txt:4:3: error: type stack size too small at set_local. got 0, expected at least 1 set_local 0)) ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-setlocal-undefined.txt b/test/parse/expr/bad-setlocal-undefined.txt index 0260cd30..8794d2fd 100644 --- a/test/parse/expr/bad-setlocal-undefined.txt +++ b/test/parse/expr/bad-setlocal-undefined.txt @@ -3,7 +3,7 @@ i32.const 0 set_local 0)) (;; STDERR ;;; -out/test/parse/expr/bad-setlocal-undefined.txt:4:21: local variable out of range (max 0) +out/test/parse/expr/bad-setlocal-undefined.txt:4:21: error: local variable out of range (max 0) set_local 0)) ^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-store-align-not-pot.txt b/test/parse/expr/bad-store-align-not-pot.txt index 5bf5d544..e9bee999 100644 --- a/test/parse/expr/bad-store-align-not-pot.txt +++ b/test/parse/expr/bad-store-align-not-pot.txt @@ -6,7 +6,7 @@ f32.const 0.0 f32.store align=3)) (;; STDERR ;;; -out/test/parse/expr/bad-store-align-not-pot.txt:7:15: alignment must be power-of-two +out/test/parse/expr/bad-store-align-not-pot.txt:7:15: error: alignment must be power-of-two f32.store align=3)) ^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-store-align.txt b/test/parse/expr/bad-store-align.txt index e08fe4a8..b34ddc30 100644 --- a/test/parse/expr/bad-store-align.txt +++ b/test/parse/expr/bad-store-align.txt @@ -4,7 +4,7 @@ i32.const 0 i32.store align=foo)) (;; STDERR ;;; -out/test/parse/expr/bad-store-align.txt:5:21: unexpected token "align=foo" +out/test/parse/expr/bad-store-align.txt:5:21: error: unexpected token "align=foo" i32.store align=foo)) ^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-store-float.sign.txt b/test/parse/expr/bad-store-float.sign.txt index 5aa00d96..b5da7ebd 100644 --- a/test/parse/expr/bad-store-float.sign.txt +++ b/test/parse/expr/bad-store-float.sign.txt @@ -4,7 +4,7 @@ f32.const 0 f32.storeu)) (;; STDERR ;;; -out/test/parse/expr/bad-store-float.sign.txt:5:11: unexpected token "f32.storeu" +out/test/parse/expr/bad-store-float.sign.txt:5:11: error: unexpected token "f32.storeu" f32.storeu)) ^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-store-offset-negative.txt b/test/parse/expr/bad-store-offset-negative.txt index 0bca36c4..cba15fee 100644 --- a/test/parse/expr/bad-store-offset-negative.txt +++ b/test/parse/expr/bad-store-offset-negative.txt @@ -4,7 +4,7 @@ i32.const 0 i32.store8 offset=-1)) (;; STDERR ;;; -out/test/parse/expr/bad-store-offset-negative.txt:5:22: unexpected token "offset=-1" +out/test/parse/expr/bad-store-offset-negative.txt:5:22: error: unexpected token "offset=-1" i32.store8 offset=-1)) ^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-store-type.txt b/test/parse/expr/bad-store-type.txt index f5128db4..6c5cb879 100644 --- a/test/parse/expr/bad-store-type.txt +++ b/test/parse/expr/bad-store-type.txt @@ -4,7 +4,7 @@ f32.const 0 store.float32)) (;; STDERR ;;; -out/test/parse/expr/bad-store-type.txt:5:11: unexpected token "store.float32" +out/test/parse/expr/bad-store-type.txt:5:11: error: unexpected token "store.float32" store.float32)) ^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/bad-unexpected.txt b/test/parse/expr/bad-unexpected.txt index c7d3f238..7bd7b72d 100644 --- a/test/parse/expr/bad-unexpected.txt +++ b/test/parse/expr/bad-unexpected.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (module))) (;; STDERR ;;; -out/test/parse/expr/bad-unexpected.txt:2:16: syntax error, unexpected MODULE +out/test/parse/expr/bad-unexpected.txt:2:16: error: syntax error, unexpected MODULE (module (func (module))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/expr/callimport-defined-later.txt b/test/parse/expr/callimport-defined-later.txt index 30956c0d..403335fa 100644 --- a/test/parse/expr/callimport-defined-later.txt +++ b/test/parse/expr/callimport-defined-later.txt @@ -5,7 +5,7 @@ call $baz) (import "foo" "bar" (func $baz (param f32)))) (;; STDERR ;;; -out/test/parse/expr/callimport-defined-later.txt:6:3: imports must occur before all non-import definitions +out/test/parse/expr/callimport-defined-later.txt:6:3: error: imports must occur before all non-import definitions (import "foo" "bar" (func $baz (param f32)))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/force-color.txt b/test/parse/force-color.txt index 9ea7d587..24c05546 100644 --- a/test/parse/force-color.txt +++ b/test/parse/force-color.txt @@ -5,10 +5,10 @@ (func badname (param i32) (result badtype) drop)) (;; STDERR ;;; -[1mout/test/parse/force-color.txt:5:9: [0munexpected token "badname" +[1mout/test/parse/force-color.txt:5:9: [31merror: [0munexpected token "badname" (func badname (param i32) (result badtype) [1m[32m^^^^^^^[0m -[1mout/test/parse/force-color.txt:5:37: [0munexpected token "badtype" +[1mout/test/parse/force-color.txt:5:37: [31merror: [0munexpected token "badtype" (func badname (param i32) (result badtype) [1m[32m^^^^^^^[0m ;;; STDERR ;;) diff --git a/test/parse/func/bad-func-name.txt b/test/parse/func/bad-func-name.txt index 3e968f75..0b9d9d15 100644 --- a/test/parse/func/bad-func-name.txt +++ b/test/parse/func/bad-func-name.txt @@ -2,7 +2,7 @@ (module (func foo)) (;; STDERR ;;; -out/test/parse/func/bad-func-name.txt:3:9: unexpected token "foo" +out/test/parse/func/bad-func-name.txt:3:9: error: unexpected token "foo" (func foo)) ^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-local-binding-no-type.txt b/test/parse/func/bad-local-binding-no-type.txt index 8762e7fd..a90945fa 100644 --- a/test/parse/func/bad-local-binding-no-type.txt +++ b/test/parse/func/bad-local-binding-no-type.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (local $n))) (;; STDERR ;;; -out/test/parse/func/bad-local-binding-no-type.txt:2:24: syntax error, unexpected ), expecting VALUE_TYPE +out/test/parse/func/bad-local-binding-no-type.txt:2:24: error: syntax error, unexpected ), expecting VALUE_TYPE (module (func (local $n))) ^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-local-binding.txt b/test/parse/func/bad-local-binding.txt index 93ed5491..3f2f6d79 100644 --- a/test/parse/func/bad-local-binding.txt +++ b/test/parse/func/bad-local-binding.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (local $foo $bar))) (;; STDERR ;;; -out/test/parse/func/bad-local-binding.txt:2:27: syntax error, unexpected VAR, expecting VALUE_TYPE +out/test/parse/func/bad-local-binding.txt:2:27: error: syntax error, unexpected VAR, expecting VALUE_TYPE (module (func (local $foo $bar))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-local-name.txt b/test/parse/func/bad-local-name.txt index 5a80838a..80138aec 100644 --- a/test/parse/func/bad-local-name.txt +++ b/test/parse/func/bad-local-name.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (local 0 i32))) (;; STDERR ;;; -out/test/parse/func/bad-local-name.txt:2:22: syntax error, unexpected NAT, expecting ) or VALUE_TYPE +out/test/parse/func/bad-local-name.txt:2:22: error: syntax error, unexpected NAT, expecting ) or VALUE_TYPE (module (func (local 0 i32))) ^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-local-type-list.txt b/test/parse/func/bad-local-type-list.txt index 78b2906f..2dc0b418 100644 --- a/test/parse/func/bad-local-type-list.txt +++ b/test/parse/func/bad-local-type-list.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (local i32 i64 foo f32))) (;; STDERR ;;; -out/test/parse/func/bad-local-type-list.txt:2:30: unexpected token "foo" +out/test/parse/func/bad-local-type-list.txt:2:30: error: unexpected token "foo" (module (func (local i32 i64 foo f32))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-local-type.txt b/test/parse/func/bad-local-type.txt index c453731a..03ae8615 100644 --- a/test/parse/func/bad-local-type.txt +++ b/test/parse/func/bad-local-type.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (local foo))) (;; STDERR ;;; -out/test/parse/func/bad-local-type.txt:2:22: unexpected token "foo" +out/test/parse/func/bad-local-type.txt:2:22: error: unexpected token "foo" (module (func (local foo))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-param-binding.txt b/test/parse/func/bad-param-binding.txt index 30987aa2..bd32ac9d 100644 --- a/test/parse/func/bad-param-binding.txt +++ b/test/parse/func/bad-param-binding.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (param $bar $baz))) (;; STDERR ;;; -out/test/parse/func/bad-param-binding.txt:2:27: syntax error, unexpected VAR, expecting VALUE_TYPE +out/test/parse/func/bad-param-binding.txt:2:27: error: syntax error, unexpected VAR, expecting VALUE_TYPE (module (func (param $bar $baz))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-param-name.txt b/test/parse/func/bad-param-name.txt index 23ad377a..1c9879ed 100644 --- a/test/parse/func/bad-param-name.txt +++ b/test/parse/func/bad-param-name.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (param 0 i32))) (;; STDERR ;;; -out/test/parse/func/bad-param-name.txt:2:22: syntax error, unexpected NAT, expecting ) or VALUE_TYPE +out/test/parse/func/bad-param-name.txt:2:22: error: syntax error, unexpected NAT, expecting ) or VALUE_TYPE (module (func (param 0 i32))) ^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-param-redefinition.txt b/test/parse/func/bad-param-redefinition.txt index 5e7fb374..057d4ebd 100644 --- a/test/parse/func/bad-param-redefinition.txt +++ b/test/parse/func/bad-param-redefinition.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (param $n i32) (param $n f32))) (;; STDERR ;;; -out/test/parse/func/bad-param-redefinition.txt:2:37: redefinition of parameter "$n" +out/test/parse/func/bad-param-redefinition.txt:2:37: error: redefinition of parameter "$n" (module (func (param $n i32) (param $n f32))) ^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-param-type-list.txt b/test/parse/func/bad-param-type-list.txt index a76f2122..c00322de 100644 --- a/test/parse/func/bad-param-type-list.txt +++ b/test/parse/func/bad-param-type-list.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (param i32 i64 foo f32))) (;; STDERR ;;; -out/test/parse/func/bad-param-type-list.txt:2:30: unexpected token "foo" +out/test/parse/func/bad-param-type-list.txt:2:30: error: unexpected token "foo" (module (func (param i32 i64 foo f32))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-param.txt b/test/parse/func/bad-param.txt index 7f871d49..789c3ce9 100644 --- a/test/parse/func/bad-param.txt +++ b/test/parse/func/bad-param.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (param foo))) (;; STDERR ;;; -out/test/parse/func/bad-param.txt:2:22: unexpected token "foo" +out/test/parse/func/bad-param.txt:2:22: error: unexpected token "foo" (module (func (param foo))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-result-multi.txt b/test/parse/func/bad-result-multi.txt index 947a92d6..551e7c75 100644 --- a/test/parse/func/bad-result-multi.txt +++ b/test/parse/func/bad-result-multi.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (result i32 i64))) (;; STDERR ;;; -out/test/parse/func/bad-result-multi.txt:2:10: multiple result values not currently supported. +out/test/parse/func/bad-result-multi.txt:2:10: error: multiple result values not currently supported. (module (func (result i32 i64))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-result-type.txt b/test/parse/func/bad-result-type.txt index 957153f2..82089a25 100644 --- a/test/parse/func/bad-result-type.txt +++ b/test/parse/func/bad-result-type.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func (result foo))) (;; STDERR ;;; -out/test/parse/func/bad-result-type.txt:2:23: unexpected token "foo" +out/test/parse/func/bad-result-type.txt:2:23: error: unexpected token "foo" (module (func (result foo))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-sig-param-type-mismatch.txt b/test/parse/func/bad-sig-param-type-mismatch.txt index 57aac10f..9e72ba74 100644 --- a/test/parse/func/bad-sig-param-type-mismatch.txt +++ b/test/parse/func/bad-sig-param-type-mismatch.txt @@ -3,7 +3,7 @@ (type $t (func (param i32 f32))) (func (type $t) (param f32 f32))) (;; STDERR ;;; -out/test/parse/func/bad-sig-param-type-mismatch.txt:4:4: type mismatch for argument 0 of function. got f32, expected i32 +out/test/parse/func/bad-sig-param-type-mismatch.txt:4:4: error: type mismatch for argument 0 of function. got f32, expected i32 (func (type $t) (param f32 f32))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-sig-params-empty.txt b/test/parse/func/bad-sig-params-empty.txt index 8eb9e2b6..d4a3358b 100644 --- a/test/parse/func/bad-sig-params-empty.txt +++ b/test/parse/func/bad-sig-params-empty.txt @@ -3,7 +3,7 @@ (type $t (func)) (func (type $t) (param i32))) (;; STDERR ;;; -out/test/parse/func/bad-sig-params-empty.txt:4:4: expected 0 arguments, got 1 +out/test/parse/func/bad-sig-params-empty.txt:4:4: error: expected 0 arguments, got 1 (func (type $t) (param i32))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-sig-result-type-mismatch.txt b/test/parse/func/bad-sig-result-type-mismatch.txt index f8634b62..b45ba8af 100644 --- a/test/parse/func/bad-sig-result-type-mismatch.txt +++ b/test/parse/func/bad-sig-result-type-mismatch.txt @@ -3,10 +3,10 @@ (type $t (func (param i32) (result f32))) (func (type $t) (param i32) (result i64))) (;; STDERR ;;; -out/test/parse/func/bad-sig-result-type-mismatch.txt:4:4: type mismatch for result 0 of function. got i64, expected f32 +out/test/parse/func/bad-sig-result-type-mismatch.txt:4:4: error: type mismatch for result 0 of function. got i64, expected f32 (func (type $t) (param i32) (result i64))) ^^^^ -out/test/parse/func/bad-sig-result-type-mismatch.txt:4:4: type stack size too small at implicit return. got 0, expected at least 1 +out/test/parse/func/bad-sig-result-type-mismatch.txt:4:4: error: type stack size too small at implicit return. got 0, expected at least 1 (func (type $t) (param i32) (result i64))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-sig-result-type-not-void.txt b/test/parse/func/bad-sig-result-type-not-void.txt index a58c98f5..c081b80b 100644 --- a/test/parse/func/bad-sig-result-type-not-void.txt +++ b/test/parse/func/bad-sig-result-type-not-void.txt @@ -3,10 +3,10 @@ (type $t (func (param i32))) (func (type $t) (param i32) (result f32))) (;; STDERR ;;; -out/test/parse/func/bad-sig-result-type-not-void.txt:4:4: expected 0 results, got 1 +out/test/parse/func/bad-sig-result-type-not-void.txt:4:4: error: expected 0 results, got 1 (func (type $t) (param i32) (result f32))) ^^^^ -out/test/parse/func/bad-sig-result-type-not-void.txt:4:4: type stack size too small at implicit return. got 0, expected at least 1 +out/test/parse/func/bad-sig-result-type-not-void.txt:4:4: error: type stack size too small at implicit return. got 0, expected at least 1 (func (type $t) (param i32) (result f32))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-sig-result-type-void.txt b/test/parse/func/bad-sig-result-type-void.txt index 500a4632..71024ee0 100644 --- a/test/parse/func/bad-sig-result-type-void.txt +++ b/test/parse/func/bad-sig-result-type-void.txt @@ -3,7 +3,7 @@ (type $t (func (param i32) (result f32))) (func (type $t) (param i32))) (;; STDERR ;;; -out/test/parse/func/bad-sig-result-type-void.txt:4:4: expected 1 results, got 0 +out/test/parse/func/bad-sig-result-type-void.txt:4:4: error: expected 1 results, got 0 (func (type $t) (param i32))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-sig-too-few-params.txt b/test/parse/func/bad-sig-too-few-params.txt index 401b00e5..095c5d75 100644 --- a/test/parse/func/bad-sig-too-few-params.txt +++ b/test/parse/func/bad-sig-too-few-params.txt @@ -3,7 +3,7 @@ (type $t (func (param i32 f32))) (func (type $t) (param i32))) (;; STDERR ;;; -out/test/parse/func/bad-sig-too-few-params.txt:4:4: expected 2 arguments, got 1 +out/test/parse/func/bad-sig-too-few-params.txt:4:4: error: expected 2 arguments, got 1 (func (type $t) (param i32))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/func/bad-sig-too-many-params.txt b/test/parse/func/bad-sig-too-many-params.txt index 40427c3c..1ee0e7bc 100644 --- a/test/parse/func/bad-sig-too-many-params.txt +++ b/test/parse/func/bad-sig-too-many-params.txt @@ -3,7 +3,7 @@ (type $t (func (param i32))) (func (type $t) (param i32 i32))) (;; STDERR ;;; -out/test/parse/func/bad-sig-too-many-params.txt:4:4: expected 1 arguments, got 2 +out/test/parse/func/bad-sig-too-many-params.txt:4:4: error: expected 1 arguments, got 2 (func (type $t) (param i32 i32))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-binary-module-magic.txt b/test/parse/module/bad-binary-module-magic.txt index 7961803d..a387b8c2 100644 --- a/test/parse/module/bad-binary-module-magic.txt +++ b/test/parse/module/bad-binary-module-magic.txt @@ -3,7 +3,7 @@ "\00ASM" "\0b\00\00\00") (;; STDERR ;;; -out/test/parse/module/bad-binary-module-magic.txt:2:2: error in binary module: @0x00000004: bad magic value +out/test/parse/module/bad-binary-module-magic.txt:2:2: error: error in binary module: @0x00000004: bad magic value (module binary ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-func-empty.txt b/test/parse/module/bad-export-func-empty.txt index de531b22..09e7d41e 100644 --- a/test/parse/module/bad-export-func-empty.txt +++ b/test/parse/module/bad-export-func-empty.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export)) (;; STDERR ;;; -out/test/parse/module/bad-export-func-empty.txt:2:16: syntax error, unexpected ), expecting TEXT +out/test/parse/module/bad-export-func-empty.txt:2:16: error: syntax error, unexpected ), expecting TEXT (module (export)) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-func-name-undefined.txt b/test/parse/module/bad-export-func-name-undefined.txt index 36658f0a..f84db6e8 100644 --- a/test/parse/module/bad-export-func-name-undefined.txt +++ b/test/parse/module/bad-export-func-name-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export "foo" (func $foo))) (;; STDERR ;;; -out/test/parse/module/bad-export-func-name-undefined.txt:2:29: undefined function variable "$foo" +out/test/parse/module/bad-export-func-name-undefined.txt:2:29: error: undefined function variable "$foo" (module (export "foo" (func $foo))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-func-name.txt b/test/parse/module/bad-export-func-name.txt index 0d189e35..6008c748 100644 --- a/test/parse/module/bad-export-func-name.txt +++ b/test/parse/module/bad-export-func-name.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (export "foo" (func foo))) (;; STDERR ;;; -out/test/parse/module/bad-export-func-name.txt:2:29: unexpected token "foo" +out/test/parse/module/bad-export-func-name.txt:2:29: error: unexpected token "foo" (module (export "foo" (func foo))) ^^^ -out/test/parse/module/bad-export-func-name.txt:2:32: syntax error, unexpected ), expecting NAT or VAR +out/test/parse/module/bad-export-func-name.txt:2:32: error: syntax error, unexpected ), expecting NAT or VAR (module (export "foo" (func foo))) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-func-no-string.txt b/test/parse/module/bad-export-func-no-string.txt index 384950ab..5a69362f 100644 --- a/test/parse/module/bad-export-func-no-string.txt +++ b/test/parse/module/bad-export-func-no-string.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func nop) (export nop nop)) (;; STDERR ;;; -out/test/parse/module/bad-export-func-no-string.txt:2:28: syntax error, unexpected NOP, expecting TEXT +out/test/parse/module/bad-export-func-no-string.txt:2:28: error: syntax error, unexpected NOP, expecting TEXT (module (func nop) (export nop nop)) ^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-func-too-many.txt b/test/parse/module/bad-export-func-too-many.txt index e560cfdf..3e01362e 100644 --- a/test/parse/module/bad-export-func-too-many.txt +++ b/test/parse/module/bad-export-func-too-many.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (func nop) (export "nop" (func 0 foo))) (;; STDERR ;;; -out/test/parse/module/bad-export-func-too-many.txt:2:42: unexpected token "foo" +out/test/parse/module/bad-export-func-too-many.txt:2:42: error: unexpected token "foo" (module (func nop) (export "nop" (func 0 foo))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-func-undefined.txt b/test/parse/module/bad-export-func-undefined.txt index 048f4968..7594523f 100644 --- a/test/parse/module/bad-export-func-undefined.txt +++ b/test/parse/module/bad-export-func-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export "foo" (func 0))) (;; STDERR ;;; -out/test/parse/module/bad-export-func-undefined.txt:2:29: function variable out of range (max 0) +out/test/parse/module/bad-export-func-undefined.txt:2:29: error: function variable out of range (max 0) (module (export "foo" (func 0))) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-global-name-undefined.txt b/test/parse/module/bad-export-global-name-undefined.txt index db502d85..a0893b27 100644 --- a/test/parse/module/bad-export-global-name-undefined.txt +++ b/test/parse/module/bad-export-global-name-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export "foo" (global $bar))) (;; STDERR ;;; -out/test/parse/module/bad-export-global-name-undefined.txt:2:31: undefined global variable "$bar" +out/test/parse/module/bad-export-global-name-undefined.txt:2:31: error: undefined global variable "$bar" (module (export "foo" (global $bar))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-global-undefined.txt b/test/parse/module/bad-export-global-undefined.txt index 06087257..5bb046eb 100644 --- a/test/parse/module/bad-export-global-undefined.txt +++ b/test/parse/module/bad-export-global-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export "foo" (global 0))) (;; STDERR ;;; -out/test/parse/module/bad-export-global-undefined.txt:2:31: global variable out of range (max 0) +out/test/parse/module/bad-export-global-undefined.txt:2:31: error: global variable out of range (max 0) (module (export "foo" (global 0))) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-memory-name-undefined.txt b/test/parse/module/bad-export-memory-name-undefined.txt index 5b96bf1e..c8312a63 100644 --- a/test/parse/module/bad-export-memory-name-undefined.txt +++ b/test/parse/module/bad-export-memory-name-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export "foo" (memory $bar))) (;; STDERR ;;; -out/test/parse/module/bad-export-memory-name-undefined.txt:2:31: undefined memory variable "$bar" +out/test/parse/module/bad-export-memory-name-undefined.txt:2:31: error: undefined memory variable "$bar" (module (export "foo" (memory $bar))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-memory-undefined.txt b/test/parse/module/bad-export-memory-undefined.txt index 69c23c2d..74040448 100644 --- a/test/parse/module/bad-export-memory-undefined.txt +++ b/test/parse/module/bad-export-memory-undefined.txt @@ -2,7 +2,7 @@ (module (export "mem" (memory 0))) (;; STDERR ;;; -out/test/parse/module/bad-export-memory-undefined.txt:3:25: memory variable out of range (max 0) +out/test/parse/module/bad-export-memory-undefined.txt:3:25: error: memory variable out of range (max 0) (export "mem" (memory 0))) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-table-name-undefined.txt b/test/parse/module/bad-export-table-name-undefined.txt index b8c7fd64..3e59eff4 100644 --- a/test/parse/module/bad-export-table-name-undefined.txt +++ b/test/parse/module/bad-export-table-name-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export "foo" (table $bar))) (;; STDERR ;;; -out/test/parse/module/bad-export-table-name-undefined.txt:2:30: undefined table variable "$bar" +out/test/parse/module/bad-export-table-name-undefined.txt:2:30: error: undefined table variable "$bar" (module (export "foo" (table $bar))) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-export-table-undefined.txt b/test/parse/module/bad-export-table-undefined.txt index 15e909fe..e75732de 100644 --- a/test/parse/module/bad-export-table-undefined.txt +++ b/test/parse/module/bad-export-table-undefined.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (export "foo" (table 0))) (;; STDERR ;;; -out/test/parse/module/bad-export-table-undefined.txt:2:30: table variable out of range (max 0) +out/test/parse/module/bad-export-table-undefined.txt:2:30: error: table variable out of range (max 0) (module (export "foo" (table 0))) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-func-redefinition.txt b/test/parse/module/bad-func-redefinition.txt index 536d2d3d..7b3f3f15 100644 --- a/test/parse/module/bad-func-redefinition.txt +++ b/test/parse/module/bad-func-redefinition.txt @@ -3,7 +3,7 @@ (func $n nop) (func $n nop)) (;; STDERR ;;; -out/test/parse/module/bad-func-redefinition.txt:4:4: redefinition of function "$n" +out/test/parse/module/bad-func-redefinition.txt:4:4: error: redefinition of function "$n" (func $n nop)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-global-invalid-expr.txt b/test/parse/module/bad-global-invalid-expr.txt index 97d8da09..9041eeb3 100644 --- a/test/parse/module/bad-global-invalid-expr.txt +++ b/test/parse/module/bad-global-invalid-expr.txt @@ -5,7 +5,7 @@ i32.const 2 i32.add)) (;; STDERR ;;; -out/test/parse/module/bad-global-invalid-expr.txt:3:4: invalid global initializer expression, must be a constant expression; either *.const or get_global. +out/test/parse/module/bad-global-invalid-expr.txt:3:4: error: invalid global initializer expression, must be a constant expression; either *.const or get_global. (global i32 ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-global-invalid-getglobal.txt b/test/parse/module/bad-global-invalid-getglobal.txt index e650bd1c..9605870c 100644 --- a/test/parse/module/bad-global-invalid-getglobal.txt +++ b/test/parse/module/bad-global-invalid-getglobal.txt @@ -2,7 +2,7 @@ (module (global i32 (get_global 1))) (;; STDERR ;;; -out/test/parse/module/bad-global-invalid-getglobal.txt:3:27: global variable out of range (max 1) +out/test/parse/module/bad-global-invalid-getglobal.txt:3:27: error: global variable out of range (max 1) (global i32 (get_global 1))) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-import-func-not-param.txt b/test/parse/module/bad-import-func-not-param.txt index f0c41412..b69d6404 100644 --- a/test/parse/module/bad-import-func-not-param.txt +++ b/test/parse/module/bad-import-func-not-param.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (import "foo" "bar" (func (parump i32)))) (;; STDERR ;;; -out/test/parse/module/bad-import-func-not-param.txt:2:36: unexpected token "parump" +out/test/parse/module/bad-import-func-not-param.txt:2:36: error: unexpected token "parump" (module (import "foo" "bar" (func (parump i32)))) ^^^^^^ -out/test/parse/module/bad-import-func-not-param.txt:2:43: syntax error, unexpected VALUE_TYPE, expecting TYPE or PARAM or RESULT +out/test/parse/module/bad-import-func-not-param.txt:2:43: error: syntax error, unexpected VALUE_TYPE, expecting TYPE or PARAM or RESULT (module (import "foo" "bar" (func (parump i32)))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-import-func-not-result.txt b/test/parse/module/bad-import-func-not-result.txt index ffe99175..f4660bd9 100644 --- a/test/parse/module/bad-import-func-not-result.txt +++ b/test/parse/module/bad-import-func-not-result.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (import "foo" "bar" (func (param i32) (resalt i32)))) (;; STDERR ;;; -out/test/parse/module/bad-import-func-not-result.txt:2:48: unexpected token "resalt" +out/test/parse/module/bad-import-func-not-result.txt:2:48: error: unexpected token "resalt" (module (import "foo" "bar" (func (param i32) (resalt i32)))) ^^^^^^ -out/test/parse/module/bad-import-func-not-result.txt:2:55: syntax error, unexpected VALUE_TYPE, expecting PARAM or RESULT +out/test/parse/module/bad-import-func-not-result.txt:2:55: error: syntax error, unexpected VALUE_TYPE, expecting PARAM or RESULT (module (import "foo" "bar" (func (param i32) (resalt i32)))) ^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-import-func-one-string.txt b/test/parse/module/bad-import-func-one-string.txt index 61bae648..f10e8f35 100644 --- a/test/parse/module/bad-import-func-one-string.txt +++ b/test/parse/module/bad-import-func-one-string.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (import "foo" (param i32))) (;; STDERR ;;; -out/test/parse/module/bad-import-func-one-string.txt:2:23: syntax error, unexpected (, expecting TEXT +out/test/parse/module/bad-import-func-one-string.txt:2:23: error: syntax error, unexpected (, expecting TEXT (module (import "foo" (param i32))) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-import-func-redefinition.txt b/test/parse/module/bad-import-func-redefinition.txt index db06946a..404281bf 100644 --- a/test/parse/module/bad-import-func-redefinition.txt +++ b/test/parse/module/bad-import-func-redefinition.txt @@ -3,7 +3,7 @@ (import "bar" "baz" (func $foo (param i32))) (import "quux" "blorf" (func $foo (param f32)))) (;; STDERR ;;; -out/test/parse/module/bad-import-func-redefinition.txt:4:4: redefinition of function "$foo" +out/test/parse/module/bad-import-func-redefinition.txt:4:4: error: redefinition of function "$foo" (import "quux" "blorf" (func $foo (param f32)))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-import-global-redefinition.txt b/test/parse/module/bad-import-global-redefinition.txt index d5a85348..e3dc8dbc 100644 --- a/test/parse/module/bad-import-global-redefinition.txt +++ b/test/parse/module/bad-import-global-redefinition.txt @@ -3,7 +3,7 @@ (import "foo" "bar" (global $baz i32)) (import "oof" "rab" (global $baz i32))) (;; STDERR ;;; -out/test/parse/module/bad-import-global-redefinition.txt:4:4: redefinition of global "$baz" +out/test/parse/module/bad-import-global-redefinition.txt:4:4: error: redefinition of global "$baz" (import "oof" "rab" (global $baz i32))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-import-memory-redefinition.txt b/test/parse/module/bad-import-memory-redefinition.txt index c76703a7..b0f9b070 100644 --- a/test/parse/module/bad-import-memory-redefinition.txt +++ b/test/parse/module/bad-import-memory-redefinition.txt @@ -3,7 +3,7 @@ (import "foo" "bar" (memory $baz 0)) (import "foo" "blah" (memory $baz 0))) (;; STDERR ;;; -out/test/parse/module/bad-import-memory-redefinition.txt:4:4: redefinition of memory "$baz" +out/test/parse/module/bad-import-memory-redefinition.txt:4:4: error: redefinition of memory "$baz" (import "foo" "blah" (memory $baz 0))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-import-table-redefinition.txt b/test/parse/module/bad-import-table-redefinition.txt index 94556bd8..74b88b21 100644 --- a/test/parse/module/bad-import-table-redefinition.txt +++ b/test/parse/module/bad-import-table-redefinition.txt @@ -3,7 +3,7 @@ (import "foo" "bar" (table $baz 0 anyfunc)) (import "foo" "blah" (table $baz 0 anyfunc))) (;; STDERR ;;; -out/test/parse/module/bad-import-table-redefinition.txt:4:4: redefinition of table "$baz" +out/test/parse/module/bad-import-table-redefinition.txt:4:4: error: redefinition of table "$baz" (import "foo" "blah" (table $baz 0 anyfunc))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-empty.txt b/test/parse/module/bad-memory-empty.txt index 40b06178..0c4ba840 100644 --- a/test/parse/module/bad-memory-empty.txt +++ b/test/parse/module/bad-memory-empty.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (memory)) (;; STDERR ;;; -out/test/parse/module/bad-memory-empty.txt:2:16: syntax error, unexpected ), expecting ( or NAT +out/test/parse/module/bad-memory-empty.txt:2:16: error: syntax error, unexpected ), expecting ( or NAT (module (memory)) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-init-size-negative.txt b/test/parse/module/bad-memory-init-size-negative.txt index 59261dd1..4a7680ed 100644 --- a/test/parse/module/bad-memory-init-size-negative.txt +++ b/test/parse/module/bad-memory-init-size-negative.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (memory -100)) (;; STDERR ;;; -out/test/parse/module/bad-memory-init-size-negative.txt:2:17: syntax error, unexpected INT, expecting ( or NAT +out/test/parse/module/bad-memory-init-size-negative.txt:2:17: error: syntax error, unexpected INT, expecting ( or NAT (module (memory -100)) ^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-init-size-too-big.txt b/test/parse/module/bad-memory-init-size-too-big.txt index edd15663..e8f05e65 100644 --- a/test/parse/module/bad-memory-init-size-too-big.txt +++ b/test/parse/module/bad-memory-init-size-too-big.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (memory 65537)) (;; STDERR ;;; -out/test/parse/module/bad-memory-init-size-too-big.txt:2:10: initial pages (65537) must be <= (65536) +out/test/parse/module/bad-memory-init-size-too-big.txt:2:10: error: initial pages (65537) must be <= (65536) (module (memory 65537)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-init-size.txt b/test/parse/module/bad-memory-init-size.txt index 97916071..64efb26a 100644 --- a/test/parse/module/bad-memory-init-size.txt +++ b/test/parse/module/bad-memory-init-size.txt @@ -1,10 +1,10 @@ ;;; ERROR: 1 (module (memory foo)) (;; STDERR ;;; -out/test/parse/module/bad-memory-init-size.txt:2:17: unexpected token "foo" +out/test/parse/module/bad-memory-init-size.txt:2:17: error: unexpected token "foo" (module (memory foo)) ^^^ -out/test/parse/module/bad-memory-init-size.txt:2:20: syntax error, unexpected ), expecting ( or NAT +out/test/parse/module/bad-memory-init-size.txt:2:20: error: syntax error, unexpected ), expecting ( or NAT (module (memory foo)) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-max-less-than-init.txt b/test/parse/module/bad-memory-max-less-than-init.txt index cc4ffd61..9e92b725 100644 --- a/test/parse/module/bad-memory-max-less-than-init.txt +++ b/test/parse/module/bad-memory-max-less-than-init.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (memory 2 1)) (;; STDERR ;;; -out/test/parse/module/bad-memory-max-less-than-init.txt:2:10: max pages (1) must be >= initial pages (2) +out/test/parse/module/bad-memory-max-less-than-init.txt:2:10: error: max pages (1) must be >= initial pages (2) (module (memory 2 1)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-max-size-negative.txt b/test/parse/module/bad-memory-max-size-negative.txt index bd65f811..ff7f3ec2 100644 --- a/test/parse/module/bad-memory-max-size-negative.txt +++ b/test/parse/module/bad-memory-max-size-negative.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (memory 100 -5)) (;; STDERR ;;; -out/test/parse/module/bad-memory-max-size-negative.txt:2:21: syntax error, unexpected INT, expecting ) +out/test/parse/module/bad-memory-max-size-negative.txt:2:21: error: syntax error, unexpected INT, expecting ) (module (memory 100 -5)) ^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-max-size-too-big.txt b/test/parse/module/bad-memory-max-size-too-big.txt index 9df4c00b..a4dfa05d 100644 --- a/test/parse/module/bad-memory-max-size-too-big.txt +++ b/test/parse/module/bad-memory-max-size-too-big.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (memory 0 65537)) (;; STDERR ;;; -out/test/parse/module/bad-memory-max-size-too-big.txt:2:10: max pages (65537) must be <= (65536) +out/test/parse/module/bad-memory-max-size-too-big.txt:2:10: error: max pages (65537) must be <= (65536) (module (memory 0 65537)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-max-size.txt b/test/parse/module/bad-memory-max-size.txt index c8e6e34c..498380f5 100644 --- a/test/parse/module/bad-memory-max-size.txt +++ b/test/parse/module/bad-memory-max-size.txt @@ -1,7 +1,7 @@ ;;; ERROR: 1 (module (memory 100 foo)) (;; STDERR ;;; -out/test/parse/module/bad-memory-max-size.txt:2:21: unexpected token "foo" +out/test/parse/module/bad-memory-max-size.txt:2:21: error: unexpected token "foo" (module (memory 100 foo)) ^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-segment-address.txt b/test/parse/module/bad-memory-segment-address.txt index 2d0d543a..ff9cc77a 100644 --- a/test/parse/module/bad-memory-segment-address.txt +++ b/test/parse/module/bad-memory-segment-address.txt @@ -3,10 +3,10 @@ (memory 100) (data foo)) (;; STDERR ;;; -out/test/parse/module/bad-memory-segment-address.txt:4:9: unexpected token "foo" +out/test/parse/module/bad-memory-segment-address.txt:4:9: error: unexpected token "foo" (data foo)) ^^^ -out/test/parse/module/bad-memory-segment-address.txt:4:12: syntax error, unexpected ), expecting ( or NAT or VAR +out/test/parse/module/bad-memory-segment-address.txt:4:12: error: syntax error, unexpected ), expecting ( or NAT or VAR (data foo)) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-memory-too-many.txt b/test/parse/module/bad-memory-too-many.txt index 8f7ffe5b..553ab506 100644 --- a/test/parse/module/bad-memory-too-many.txt +++ b/test/parse/module/bad-memory-too-many.txt @@ -3,7 +3,7 @@ (memory 1) (memory 2)) (;; STDERR ;;; -out/test/parse/module/bad-memory-too-many.txt:4:4: only one memory block allowed +out/test/parse/module/bad-memory-too-many.txt:4:4: error: only one memory block allowed (memory 2)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-module-no-close.txt b/test/parse/module/bad-module-no-close.txt index a5ad2ff0..e0ecd4f1 100644 --- a/test/parse/module/bad-module-no-close.txt +++ b/test/parse/module/bad-module-no-close.txt @@ -1,5 +1,5 @@ ;;; ERROR: 1 (module (;; STDERR ;;; -out/test/parse/module/bad-module-no-close.txt:3:2: syntax error, unexpected EOF, expecting ) +out/test/parse/module/bad-module-no-close.txt:3:2: error: syntax error, unexpected EOF, expecting ) ;;; STDERR ;;) diff --git a/test/parse/module/bad-start-not-nullary.txt b/test/parse/module/bad-start-not-nullary.txt index d14f34bc..924f8327 100644 --- a/test/parse/module/bad-start-not-nullary.txt +++ b/test/parse/module/bad-start-not-nullary.txt @@ -3,7 +3,7 @@ (start 0) (func (param i32))) (;; STDERR ;;; -out/test/parse/module/bad-start-not-nullary.txt:3:4: start function must be nullary +out/test/parse/module/bad-start-not-nullary.txt:3:4: error: start function must be nullary (start 0) ^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-start-not-void.txt b/test/parse/module/bad-start-not-void.txt index 297a78f3..8b477d60 100644 --- a/test/parse/module/bad-start-not-void.txt +++ b/test/parse/module/bad-start-not-void.txt @@ -4,7 +4,7 @@ (func (result i32) i32.const 0)) (;; STDERR ;;; -out/test/parse/module/bad-start-not-void.txt:3:4: start function must not return anything +out/test/parse/module/bad-start-not-void.txt:3:4: error: start function must not return anything (start 0) ^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-start-too-many.txt b/test/parse/module/bad-start-too-many.txt index c6c64d6d..ffcf664b 100644 --- a/test/parse/module/bad-start-too-many.txt +++ b/test/parse/module/bad-start-too-many.txt @@ -5,7 +5,7 @@ (func) (func)) (;; STDERR ;;; -out/test/parse/module/bad-start-too-many.txt:4:4: only one start function allowed +out/test/parse/module/bad-start-too-many.txt:4:4: error: only one start function allowed (start 1) ^^^^^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-table-invalid-function.txt b/test/parse/module/bad-table-invalid-function.txt index fa36ad84..19de085c 100644 --- a/test/parse/module/bad-table-invalid-function.txt +++ b/test/parse/module/bad-table-invalid-function.txt @@ -4,7 +4,7 @@ (func $f) (elem (i32.const 0) $f 1)) (;; STDERR ;;; -out/test/parse/module/bad-table-invalid-function.txt:5:26: function variable out of range (max 1) +out/test/parse/module/bad-table-invalid-function.txt:5:26: error: function variable out of range (max 1) (elem (i32.const 0) $f 1)) ^ ;;; STDERR ;;) diff --git a/test/parse/module/bad-table-too-many.txt b/test/parse/module/bad-table-too-many.txt index d0d36f1c..db2bb050 100644 --- a/test/parse/module/bad-table-too-many.txt +++ b/test/parse/module/bad-table-too-many.txt @@ -4,7 +4,7 @@ (table anyfunc (elem 0)) (table anyfunc (elem 0))) (;; STDERR ;;; -out/test/parse/module/bad-table-too-many.txt:5:4: only one table allowed +out/test/parse/module/bad-table-too-many.txt:5:4: error: only one table allowed (table anyfunc (elem 0))) ^^^^^ ;;; STDERR ;;) diff --git a/test/regress/regress-1.txt b/test/regress/regress-1.txt index d83498d3..e6c8b6f2 100644 --- a/test/regress/regress-1.txt +++ b/test/regress/regress-1.txt @@ -3,7 +3,7 @@ (func(call $i32 )) (func $UemoOy_size )) (;; STDERR ;;; -out/test/regress/regress-1.txt:3:14: undefined function variable "$i32" +out/test/regress/regress-1.txt:3:14: error: undefined function variable "$i32" (func(call $i32 )) ^^^^ ;;; STDERR ;;) diff --git a/test/regress/regress-2.txt b/test/regress/regress-2.txt index 05e9c349..2a5dd023 100644 --- a/test/regress/regress-2.txt +++ b/test/regress/regress-2.txt @@ -10,10 +10,10 @@ (func $memory(param f32)(call 332 )) (func $memorGe )) (;; STDERR ;;; -out/test/regress/regress-2.txt:6:4: redefinition of function "$memor" +out/test/regress/regress-2.txt:6:4: error: redefinition of function "$memor" (func $memor(call 2 )) ^^^^ -out/test/regress/regress-2.txt:10:4: redefinition of function "$memory" +out/test/regress/regress-2.txt:10:4: error: redefinition of function "$memory" (func $memory(param f32)(call 332 )) ^^^^ ;;; STDERR ;;) diff --git a/test/regress/regress-4.txt b/test/regress/regress-4.txt index 03e63677..51c9b2c3 100644 --- a/test/regress/regress-4.txt +++ b/test/regress/regress-4.txt @@ -5,7 +5,7 @@ (func (param $p i32) (get_local $n))) (;; STDERR ;;; -out/test/regress/regress-4.txt:6:16: undefined local variable "$n" +out/test/regress/regress-4.txt:6:16: error: undefined local variable "$n" (get_local $n))) ^^ ;;; STDERR ;;) diff --git a/test/regress/regress-5.txt b/test/regress/regress-5.txt index a95d06c4..f2cc4f6d 100644 --- a/test/regress/regress-5.txt +++ b/test/regress/regress-5.txt @@ -117,7 +117,7 @@ (i64.const 0)) ;; deliberate type-check error ) (;; STDERR ;;; -out/test/regress/regress-5.txt:117:6: type mismatch in implicit return, expected i32 but got i64. +out/test/regress/regress-5.txt:117:6: error: type mismatch in implicit return, expected i32 but got i64. (i64.const 0)) ;; deliberate type-check error ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/roundtrip/try.txt b/test/roundtrip/try.txt index afe43ebd..c37ea8ce 100644 --- a/test/roundtrip/try.txt +++ b/test/roundtrip/try.txt @@ -27,4 +27,3 @@ end) (except (;0;) i32)) ;;; STDOUT ;;) - diff --git a/test/spec/address.txt b/test/spec/address.txt index 82bd4633..7a523243 100644 --- a/test/spec/address.txt +++ b/test/spec/address.txt @@ -42,7 +42,7 @@ called host spectest.print(i32:0) => called host spectest.print(i32:0) => called host spectest.print(i32:0) => out/third_party/testsuite/address.wast:37: assert_malformed passed: - out/third_party/testsuite/address/address.1.wast:1:33: offset must be less than or equal to 0xffffffff + out/third_party/testsuite/address/address.1.wast:1:33: error: offset must be less than or equal to 0xffffffff (memory 1)(func (drop (i32.load offset=4294967296 (i32.const 0)))) ^^^^^^^^^^^^^^^^^ 6/6 tests passed. diff --git a/test/spec/align.txt b/test/spec/align.txt index c5265883..e858290f 100644 --- a/test/spec/align.txt +++ b/test/spec/align.txt @@ -2,26 +2,26 @@ ;;; STDIN_FILE: third_party/testsuite/align.wast (;; STDOUT ;;; out/third_party/testsuite/align.wast:2: assert_malformed passed: - out/third_party/testsuite/align/align.0.wast:1:42: alignment must be power-of-two + out/third_party/testsuite/align/align.0.wast:1:42: error: alignment must be power-of-two (module (memory 0) (func (drop (i64.load align=0 (i32.const 0))))) ^^^^^^^ out/third_party/testsuite/align.wast:8: assert_malformed passed: - out/third_party/testsuite/align/align.1.wast:1:42: alignment must be power-of-two + out/third_party/testsuite/align/align.1.wast:1:42: error: alignment must be power-of-two (module (memory 0) (func (drop (i64.load align=7 (i32.const 0))))) ^^^^^^^ out/third_party/testsuite/align.wast:14: assert_invalid passed: error: alignment must not be larger than natural alignment (8) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/align.wast:19: assert_malformed passed: - out/third_party/testsuite/align/align.3.wast:1:37: alignment must be power-of-two + out/third_party/testsuite/align/align.3.wast:1:37: error: alignment must be power-of-two (module (memory 0) (func (i64.store align=0 (i32.const 0) (i64.const 0)))) ^^^^^^^ out/third_party/testsuite/align.wast:25: assert_malformed passed: - out/third_party/testsuite/align/align.4.wast:1:37: alignment must be power-of-two + out/third_party/testsuite/align/align.4.wast:1:37: error: alignment must be power-of-two (module (memory 0) (func (i64.store align=5 (i32.const 0) (i64.const 0)))) ^^^^^^^ out/third_party/testsuite/align.wast:31: assert_invalid passed: error: alignment must not be larger than natural alignment (8) - error: @0x00000023: OnStoreExpr callback failed + 0000023: error: OnStoreExpr callback failed 6/6 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/binary.txt b/test/spec/binary.txt index 42346495..6c3fd882 100644 --- a/test/spec/binary.txt +++ b/test/spec/binary.txt @@ -2,60 +2,60 @@ ;;; STDIN_FILE: third_party/testsuite/binary.wast (;; STDOUT ;;; out/third_party/testsuite/binary.wast:6: assert_malformed passed: - error: @0x00000000: unable to read uint32_t: magic + 0000000: error: unable to read uint32_t: magic out/third_party/testsuite/binary.wast:7: assert_malformed passed: - error: @0x00000000: unable to read uint32_t: magic + 0000000: error: unable to read uint32_t: magic out/third_party/testsuite/binary.wast:8: assert_malformed passed: - error: @0x00000000: unable to read uint32_t: magic + 0000000: error: unable to read uint32_t: magic out/third_party/testsuite/binary.wast:9: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:10: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:11: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:12: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:13: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:14: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:15: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:16: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:17: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:18: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:21: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:24: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:25: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:28: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:31: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:34: assert_malformed passed: - error: @0x00000004: bad magic value + 0000004: error: bad magic value out/third_party/testsuite/binary.wast:36: assert_malformed passed: - error: @0x00000004: unable to read uint32_t: version + 0000004: error: unable to read uint32_t: version out/third_party/testsuite/binary.wast:37: assert_malformed passed: - error: @0x00000004: unable to read uint32_t: version + 0000004: error: unable to read uint32_t: version out/third_party/testsuite/binary.wast:38: assert_malformed passed: - error: @0x00000004: unable to read uint32_t: version + 0000004: error: unable to read uint32_t: version out/third_party/testsuite/binary.wast:39: assert_malformed passed: - error: @0x00000008: bad wasm file version: 0 (expected 0x1) + 0000008: error: bad wasm file version: 0 (expected 0x1) out/third_party/testsuite/binary.wast:40: assert_malformed passed: - error: @0x00000008: bad wasm file version: 0xd (expected 0x1) + 0000008: error: bad wasm file version: 0xd (expected 0x1) out/third_party/testsuite/binary.wast:41: assert_malformed passed: - error: @0x00000008: bad wasm file version: 0xe (expected 0x1) + 0000008: error: bad wasm file version: 0xe (expected 0x1) out/third_party/testsuite/binary.wast:42: assert_malformed passed: - error: @0x00000008: bad wasm file version: 0x100 (expected 0x1) + 0000008: error: bad wasm file version: 0x100 (expected 0x1) out/third_party/testsuite/binary.wast:43: assert_malformed passed: - error: @0x00000008: bad wasm file version: 0x10000 (expected 0x1) + 0000008: error: bad wasm file version: 0x10000 (expected 0x1) out/third_party/testsuite/binary.wast:44: assert_malformed passed: - error: @0x00000008: bad wasm file version: 0x1000000 (expected 0x1) + 0000008: error: bad wasm file version: 0x1000000 (expected 0x1) 28/28 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/block.txt b/test/spec/block.txt index 4858df75..597decd8 100644 --- a/test/spec/block.txt +++ b/test/spec/block.txt @@ -3,76 +3,76 @@ (;; STDOUT ;;; out/third_party/testsuite/block.wast:159: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/block.wast:163: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/block.wast:167: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/block.wast:171: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/block.wast:176: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x0000001c: OnEndExpr callback failed + 000001c: error: OnEndExpr callback failed out/third_party/testsuite/block.wast:182: assert_invalid passed: error: type stack size too small at block. got 0, expected at least 1 - error: @0x0000001b: OnEndExpr callback failed + 000001b: error: OnEndExpr callback failed out/third_party/testsuite/block.wast:188: assert_invalid passed: error: type stack size too small at block. got 0, expected at least 1 - error: @0x0000001c: OnEndExpr callback failed + 000001c: error: OnEndExpr callback failed out/third_party/testsuite/block.wast:194: assert_invalid passed: error: type mismatch in block, expected i32 but got f32. - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/block.wast:200: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000020: EndFunctionBody callback failed + 0000020: error: EndFunctionBody callback failed out/third_party/testsuite/block.wast:207: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001c: OnBrExpr callback failed + 000001c: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:213: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001c: OnBrExpr callback failed + 000001c: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:220: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001d: OnBrExpr callback failed + 000001d: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:226: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x0000001e: OnBrExpr callback failed + 000001e: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:232: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001d: OnBrExpr callback failed + 000001d: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:238: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x0000001e: OnBrExpr callback failed + 000001e: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:245: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x00000024: EndFunctionBody callback failed + 0000024: error: EndFunctionBody callback failed out/third_party/testsuite/block.wast:251: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001e: OnBrExpr callback failed + 000001e: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:258: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001f: OnBrExpr callback failed + 000001f: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:264: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x00000020: OnBrExpr callback failed + 0000020: error: OnBrExpr callback failed out/third_party/testsuite/block.wast:273: assert_invalid passed: error: type stack size too small at i32.ctz. got 0, expected at least 1 - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/block.wast:279: assert_invalid passed: error: type stack size too small at i64.ctz. got 0, expected at least 1 - error: @0x0000001f: OnUnaryExpr callback failed + 000001f: error: OnUnaryExpr callback failed out/third_party/testsuite/block.wast:285: assert_invalid passed: error: type stack size too small at i64.ctz. got 0, expected at least 1 - error: @0x00000020: OnUnaryExpr callback failed + 0000020: error: OnUnaryExpr callback failed out/third_party/testsuite/block.wast:293: assert_malformed passed: - out/third_party/testsuite/block/block.23.wast:1:17: unexpected label "$l" + out/third_party/testsuite/block/block.23.wast:1:17: error: unexpected label "$l" (func block end $l) ^^ out/third_party/testsuite/block.wast:297: assert_malformed passed: - out/third_party/testsuite/block/block.24.wast:1:20: mismatching label "$a" != "$l" + out/third_party/testsuite/block/block.24.wast:1:20: error: mismatching label "$a" != "$l" (func block $a end $l) ^^ 38/38 tests passed. diff --git a/test/spec/br.txt b/test/spec/br.txt index fff54014..7752f678 100644 --- a/test/spec/br.txt +++ b/test/spec/br.txt @@ -3,24 +3,24 @@ (;; STDOUT ;;; out/third_party/testsuite/br.wast:411: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001c: OnBrExpr callback failed + 000001c: error: OnBrExpr callback failed out/third_party/testsuite/br.wast:418: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001d: OnBrExpr callback failed + 000001d: error: OnBrExpr callback failed out/third_party/testsuite/br.wast:424: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x00000020: OnBrExpr callback failed + 0000020: error: OnBrExpr callback failed out/third_party/testsuite/br.wast:430: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x0000001e: OnBrExpr callback failed + 000001e: error: OnBrExpr callback failed out/third_party/testsuite/br.wast:437: assert_invalid passed: error: invalid depth: 1 (max 0) - error: @0x00000019: OnBrExpr callback failed + 0000019: error: OnBrExpr callback failed out/third_party/testsuite/br.wast:441: assert_invalid passed: error: invalid depth: 5 (max 2) - error: @0x0000001d: OnBrExpr callback failed + 000001d: error: OnBrExpr callback failed out/third_party/testsuite/br.wast:445: assert_invalid passed: error: invalid depth: 268435457 (max 0) - error: @0x0000001d: OnBrExpr callback failed + 000001d: error: OnBrExpr callback failed 68/68 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/br_if.txt b/test/spec/br_if.txt index 41463904..b2429002 100644 --- a/test/spec/br_if.txt +++ b/test/spec/br_if.txt @@ -3,75 +3,75 @@ (;; STDOUT ;;; out/third_party/testsuite/br_if.wast:191: assert_invalid passed: error: type stack size too small at i32.ctz. got 0, expected at least 1 - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/br_if.wast:195: assert_invalid passed: error: type stack size too small at i64.ctz. got 0, expected at least 1 - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/br_if.wast:199: assert_invalid passed: error: type stack size too small at f32.neg. got 0, expected at least 1 - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/br_if.wast:203: assert_invalid passed: error: type stack size too small at f64.neg. got 0, expected at least 1 - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/br_if.wast:208: assert_invalid passed: error: type stack size too small at i32.ctz. got 0, expected at least 1 - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/br_if.wast:212: assert_invalid passed: error: type mismatch in br_if, expected i32 but got i64. - error: @0x0000001d: OnBrIfExpr callback failed + 000001d: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:216: assert_invalid passed: error: type mismatch in br_if, expected i32 but got f32. - error: @0x00000020: OnBrIfExpr callback failed + 0000020: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:220: assert_invalid passed: error: type mismatch in br_if, expected i32 but got i64. - error: @0x0000001d: OnBrIfExpr callback failed + 000001d: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:225: assert_invalid passed: error: type stack size too small at br_if. got 0, expected at least 1 - error: @0x0000001e: OnBrIfExpr callback failed + 000001e: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:231: assert_invalid passed: error: type stack size too small at br_if. got 0, expected at least 1 - error: @0x0000001e: OnBrIfExpr callback failed + 000001e: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:237: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/br_if.wast:243: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/br_if.wast:250: assert_invalid passed: error: type stack size too small at br_if. got 0, expected at least 1 - error: @0x0000001f: OnBrIfExpr callback failed + 000001f: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:256: assert_invalid passed: error: type stack size too small at br_if. got 0, expected at least 1 - error: @0x0000001f: OnBrIfExpr callback failed + 000001f: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:262: assert_invalid passed: error: type mismatch in br_if, expected i32 but got i64. - error: @0x00000020: OnBrIfExpr callback failed + 0000020: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:270: assert_invalid passed: error: type mismatch in br_if, expected i32 but got i64. - error: @0x00000020: OnBrIfExpr callback failed + 0000020: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:279: assert_invalid passed: error: type stack size too small at br_if. got 0, expected at least 1 - error: @0x0000001c: OnBrIfExpr callback failed + 000001c: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:285: assert_invalid passed: error: type mismatch in br_if, expected i32 but got i64. - error: @0x0000001d: OnBrIfExpr callback failed + 000001d: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:291: assert_invalid passed: error: type stack size too small at br_if. got 0, expected at least 1 - error: @0x0000001f: OnBrIfExpr callback failed + 000001f: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:297: assert_invalid passed: error: type stack size too small at br_if. got 0, expected at least 1 - error: @0x00000022: OnBrIfExpr callback failed + 0000022: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:303: assert_invalid passed: error: type mismatch in br_if, expected i32 but got i64. - error: @0x00000020: OnBrIfExpr callback failed + 0000020: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:310: assert_invalid passed: error: invalid depth: 1 (max 0) - error: @0x0000001b: OnBrIfExpr callback failed + 000001b: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:314: assert_invalid passed: error: invalid depth: 5 (max 2) - error: @0x0000001f: OnBrIfExpr callback failed + 000001f: error: OnBrIfExpr callback failed out/third_party/testsuite/br_if.wast:318: assert_invalid passed: error: invalid depth: 268435457 (max 0) - error: @0x0000001f: OnBrIfExpr callback failed + 000001f: error: OnBrIfExpr callback failed 58/58 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/br_table.txt b/test/spec/br_table.txt index 1141574f..61510311 100644 --- a/test/spec/br_table.txt +++ b/test/spec/br_table.txt @@ -3,48 +3,48 @@ (;; STDOUT ;;; out/third_party/testsuite/br_table.wast:1413: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000022: OnEndExpr callback failed + 0000022: error: OnEndExpr callback failed out/third_party/testsuite/br_table.wast:1420: assert_invalid passed: error: type stack size too small at br_table. got 0, expected at least 1 - error: @0x00000020: OnBrTableExpr callback failed + 0000020: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1426: assert_invalid passed: error: type mismatch in br_table, expected i32 but got i64. - error: @0x00000023: OnBrTableExpr callback failed + 0000023: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1434: assert_invalid passed: error: type mismatch in br_table, expected void but got f32. - error: @0x00000026: OnBrTableExpr callback failed + 0000026: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1446: assert_invalid passed: error: type stack size too small at br_table. got 0, expected at least 1 - error: @0x0000001f: OnBrTableExpr callback failed + 000001f: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1452: assert_invalid passed: error: type mismatch in br_table, expected i32 but got i64. - error: @0x0000001e: OnBrTableExpr callback failed + 000001e: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1458: assert_invalid passed: error: type stack size too small at br_table. got 0, expected at least 1 - error: @0x00000021: OnBrTableExpr callback failed + 0000021: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1464: assert_invalid passed: error: type stack size too small at br_table. got 0, expected at least 1 - error: @0x00000023: OnBrTableExpr callback failed + 0000023: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1470: assert_invalid passed: error: type mismatch in br_table, expected i32 but got i64. - error: @0x00000022: OnBrTableExpr callback failed + 0000022: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1479: assert_invalid passed: error: invalid depth: 2 (max 1) - error: @0x0000001f: OnBrTableExpr callback failed + 000001f: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1485: assert_invalid passed: error: invalid depth: 5 (max 2) - error: @0x00000021: OnBrTableExpr callback failed + 0000021: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1491: assert_invalid passed: error: invalid depth: 268435457 (max 1) - error: @0x00000024: OnBrTableExpr callback failed + 0000024: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1498: assert_invalid passed: error: invalid depth: 2 (max 1) - error: @0x0000001f: OnBrTableExpr callback failed + 000001f: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1504: assert_invalid passed: error: invalid depth: 5 (max 2) - error: @0x00000021: OnBrTableExpr callback failed + 0000021: error: OnBrTableExpr callback failed out/third_party/testsuite/br_table.wast:1510: assert_invalid passed: error: invalid depth: 268435457 (max 1) - error: @0x00000024: OnBrTableExpr callback failed + 0000024: error: OnBrTableExpr callback failed 159/159 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/call.txt b/test/spec/call.txt index de6e0572..d79eebfd 100644 --- a/test/spec/call.txt +++ b/test/spec/call.txt @@ -3,39 +3,39 @@ (;; STDOUT ;;; out/third_party/testsuite/call.wast:160: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001b: OnConvertExpr callback failed + 000001b: error: OnConvertExpr callback failed out/third_party/testsuite/call.wast:167: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got i64. - error: @0x0000001f: OnConvertExpr callback failed + 000001f: error: OnConvertExpr callback failed out/third_party/testsuite/call.wast:175: assert_invalid passed: error: type stack size too small at call. got 0, expected at least 1 - error: @0x0000001e: OnCallExpr callback failed + 000001e: error: OnCallExpr callback failed out/third_party/testsuite/call.wast:182: assert_invalid passed: error: type stack size too small at call. got 0, expected at least 2 - error: @0x0000001f: OnCallExpr callback failed + 000001f: error: OnCallExpr callback failed out/third_party/testsuite/call.wast:189: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001d: EndFunctionBody callback failed + 000001d: error: EndFunctionBody callback failed out/third_party/testsuite/call.wast:196: assert_invalid passed: error: type stack at end of function is 2, expected 0 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed out/third_party/testsuite/call.wast:204: assert_invalid passed: error: type stack size too small at call. got 1, expected at least 2 - error: @0x00000022: OnCallExpr callback failed + 0000022: error: OnCallExpr callback failed out/third_party/testsuite/call.wast:211: assert_invalid passed: error: type stack size too small at call. got 1, expected at least 2 - error: @0x00000022: OnCallExpr callback failed + 0000022: error: OnCallExpr callback failed out/third_party/testsuite/call.wast:218: assert_invalid passed: error: type mismatch in call, expected i32 but got f64. error: type mismatch in call, expected f64 but got i32. - error: @0x0000002a: OnCallExpr callback failed + 000002a: error: OnCallExpr callback failed out/third_party/testsuite/call.wast:225: assert_invalid passed: error: type mismatch in call, expected f64 but got i32. error: type mismatch in call, expected i32 but got f64. - error: @0x0000002a: OnCallExpr callback failed + 000002a: error: OnCallExpr callback failed out/third_party/testsuite/call.wast:236: assert_invalid passed: - error: @0x00000019: invalid call function index: 1 + 0000019: error: invalid call function index: 1 out/third_party/testsuite/call.wast:240: assert_invalid passed: - error: @0x0000001d: invalid call function index: 1012321300 + 000001d: error: invalid call function index: 1012321300 47/47 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/call_indirect.txt b/test/spec/call_indirect.txt index 194d404f..a03e25d1 100644 --- a/test/spec/call_indirect.txt +++ b/test/spec/call_indirect.txt @@ -3,60 +3,60 @@ (;; STDOUT ;;; out/third_party/testsuite/call_indirect.wast:237: assert_invalid passed: error: found call_indirect operator, but no table - error: @0x0000001c: OnCallIndirectExpr callback failed + 000001c: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:245: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x00000023: OnConvertExpr callback failed + 0000023: error: OnConvertExpr callback failed out/third_party/testsuite/call_indirect.wast:253: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got i64. - error: @0x00000027: OnConvertExpr callback failed + 0000027: error: OnConvertExpr callback failed out/third_party/testsuite/call_indirect.wast:262: assert_invalid passed: error: type stack size too small at call_indirect. got 0, expected at least 1 - error: @0x00000026: OnCallIndirectExpr callback failed + 0000026: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:270: assert_invalid passed: error: type stack size too small at call_indirect. got 0, expected at least 2 - error: @0x00000027: OnCallIndirectExpr callback failed + 0000027: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:278: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x00000025: EndFunctionBody callback failed + 0000025: error: EndFunctionBody callback failed out/third_party/testsuite/call_indirect.wast:286: assert_invalid passed: error: type stack at end of function is 2, expected 0 - error: @0x0000002e: EndFunctionBody callback failed + 000002e: error: EndFunctionBody callback failed out/third_party/testsuite/call_indirect.wast:297: assert_invalid passed: error: type stack size too small at call_indirect. got 0, expected at least 1 - error: @0x00000027: OnCallIndirectExpr callback failed + 0000027: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:305: assert_invalid passed: error: type mismatch in call_indirect, expected i32 but got i64. - error: @0x00000028: OnCallIndirectExpr callback failed + 0000028: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:314: assert_invalid passed: error: type stack size too small at call_indirect. got 1, expected at least 2 - error: @0x0000002a: OnCallIndirectExpr callback failed + 000002a: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:324: assert_invalid passed: error: type stack size too small at call_indirect. got 1, expected at least 2 - error: @0x0000002a: OnCallIndirectExpr callback failed + 000002a: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:334: assert_invalid passed: error: type mismatch in call_indirect, expected i32 but got f64. error: type mismatch in call_indirect, expected f64 but got i32. - error: @0x00000032: OnCallIndirectExpr callback failed + 0000032: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:344: assert_invalid passed: error: type mismatch in call_indirect, expected f64 but got i32. error: type mismatch in call_indirect, expected i32 but got f64. - error: @0x00000032: OnCallIndirectExpr callback failed + 0000032: error: OnCallIndirectExpr callback failed out/third_party/testsuite/call_indirect.wast:358: assert_invalid passed: - error: @0x00000021: invalid call_indirect signature index + 0000021: error: invalid call_indirect signature index out/third_party/testsuite/call_indirect.wast:365: assert_invalid passed: - error: @0x00000025: invalid call_indirect signature index + 0000025: error: invalid call_indirect signature index out/third_party/testsuite/call_indirect.wast:376: assert_invalid passed: error: invalid func_index: 0 (max 0) - error: @0x00000018: OnElemSegmentFunctionIndex callback failed + 0000018: error: OnElemSegmentFunctionIndex callback failed out/third_party/testsuite/call_indirect.wast:384: assert_unlinkable passed: error: elem segment offset is out of bounds: 10 >= max value 10 - error: @0x00000021: OnElemSegmentFunctionIndex callback failed + 0000021: error: OnElemSegmentFunctionIndex callback failed out/third_party/testsuite/call_indirect.wast:393: assert_unlinkable passed: error: elem segment offset is out of bounds: 4294967295 >= max value 10 - error: @0x00000021: OnElemSegmentFunctionIndex callback failed + 0000021: error: OnElemSegmentFunctionIndex callback failed out/third_party/testsuite/call_indirect.wast:402: assert_unlinkable passed: error: elem segment offset is out of bounds: 4294967286 >= max value 10 - error: @0x00000021: OnElemSegmentFunctionIndex callback failed + 0000021: error: OnElemSegmentFunctionIndex callback failed 67/67 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/const.txt b/test/spec/const.txt index 4b61a8df..379b4279 100644 --- a/test/spec/const.txt +++ b/test/spec/const.txt @@ -2,99 +2,99 @@ ;;; STDIN_FILE: third_party/testsuite/const.wast (;; STDOUT ;;; out/third_party/testsuite/const.wast:8: assert_malformed passed: - out/third_party/testsuite/const/const.2.wast:1:18: invalid literal "0x100000000" + out/third_party/testsuite/const/const.2.wast:1:18: error: invalid literal "0x100000000" (func (i32.const 0x100000000) drop) ^^^^^^^^^^^ out/third_party/testsuite/const.wast:12: assert_malformed passed: - out/third_party/testsuite/const/const.3.wast:1:18: invalid literal "-0x80000001" + out/third_party/testsuite/const/const.3.wast:1:18: error: invalid literal "-0x80000001" (func (i32.const -0x80000001) drop) ^^^^^^^^^^^ out/third_party/testsuite/const.wast:19: assert_malformed passed: - out/third_party/testsuite/const/const.6.wast:1:18: invalid literal "4294967296" + out/third_party/testsuite/const/const.6.wast:1:18: error: invalid literal "4294967296" (func (i32.const 4294967296) drop) ^^^^^^^^^^ out/third_party/testsuite/const.wast:23: assert_malformed passed: - out/third_party/testsuite/const/const.7.wast:1:18: invalid literal "-2147483649" + out/third_party/testsuite/const/const.7.wast:1:18: error: invalid literal "-2147483649" (func (i32.const -2147483649) drop) ^^^^^^^^^^^ out/third_party/testsuite/const.wast:30: assert_malformed passed: - out/third_party/testsuite/const/const.10.wast:1:18: invalid literal "0x10000000000000000" + out/third_party/testsuite/const/const.10.wast:1:18: error: invalid literal "0x10000000000000000" (func (i64.const 0x10000000000000000) drop) ^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:34: assert_malformed passed: - out/third_party/testsuite/const/const.11.wast:1:18: invalid literal "-0x8000000000000001" + out/third_party/testsuite/const/const.11.wast:1:18: error: invalid literal "-0x8000000000000001" (func (i64.const -0x8000000000000001) drop) ^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:41: assert_malformed passed: - out/third_party/testsuite/const/const.14.wast:1:18: invalid literal "18446744073709551616" + out/third_party/testsuite/const/const.14.wast:1:18: error: invalid literal "18446744073709551616" (func (i64.const 18446744073709551616) drop) ^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:45: assert_malformed passed: - out/third_party/testsuite/const/const.15.wast:1:18: invalid literal "-9223372036854775809" + out/third_party/testsuite/const/const.15.wast:1:18: error: invalid literal "-9223372036854775809" (func (i64.const -9223372036854775809) drop) ^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:56: assert_malformed passed: - out/third_party/testsuite/const/const.22.wast:1:18: invalid literal "0x1p128" + out/third_party/testsuite/const/const.22.wast:1:18: error: invalid literal "0x1p128" (func (f32.const 0x1p128) drop) ^^^^^^^ out/third_party/testsuite/const.wast:60: assert_malformed passed: - out/third_party/testsuite/const/const.23.wast:1:18: invalid literal "-0x1p128" + out/third_party/testsuite/const/const.23.wast:1:18: error: invalid literal "-0x1p128" (func (f32.const -0x1p128) drop) ^^^^^^^^ out/third_party/testsuite/const.wast:64: assert_malformed passed: - out/third_party/testsuite/const/const.24.wast:1:18: invalid literal "0x1.ffffffp127" + out/third_party/testsuite/const/const.24.wast:1:18: error: invalid literal "0x1.ffffffp127" (func (f32.const 0x1.ffffffp127) drop) ^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:68: assert_malformed passed: - out/third_party/testsuite/const/const.25.wast:1:18: invalid literal "-0x1.ffffffp127" + out/third_party/testsuite/const/const.25.wast:1:18: error: invalid literal "-0x1.ffffffp127" (func (f32.const -0x1.ffffffp127) drop) ^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:75: assert_malformed passed: - out/third_party/testsuite/const/const.28.wast:1:18: invalid literal "1e39" + out/third_party/testsuite/const/const.28.wast:1:18: error: invalid literal "1e39" (func (f32.const 1e39) drop) ^^^^ out/third_party/testsuite/const.wast:79: assert_malformed passed: - out/third_party/testsuite/const/const.29.wast:1:18: invalid literal "-1e39" + out/third_party/testsuite/const/const.29.wast:1:18: error: invalid literal "-1e39" (func (f32.const -1e39) drop) ^^^^^ out/third_party/testsuite/const.wast:86: assert_malformed passed: - out/third_party/testsuite/const/const.32.wast:1:18: invalid literal "340282356779733661637539395458142568448" + out/third_party/testsuite/const/const.32.wast:1:18: error: invalid literal "340282356779733661637539395458142568448" (func (f32.const 340282356779733661637539395458142568448) drop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:90: assert_malformed passed: - out/third_party/testsuite/const/const.33.wast:1:18: invalid literal "-340282356779733661637539395458142568448" + out/third_party/testsuite/const/const.33.wast:1:18: error: invalid literal "-340282356779733661637539395458142568448" (func (f32.const -340282356779733661637539395458142568448) drop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:101: assert_malformed passed: - out/third_party/testsuite/const/const.40.wast:1:18: invalid literal "0x1p1024" + out/third_party/testsuite/const/const.40.wast:1:18: error: invalid literal "0x1p1024" (func (f64.const 0x1p1024) drop) ^^^^^^^^ out/third_party/testsuite/const.wast:105: assert_malformed passed: - out/third_party/testsuite/const/const.41.wast:1:18: invalid literal "-0x1p1024" + out/third_party/testsuite/const/const.41.wast:1:18: error: invalid literal "-0x1p1024" (func (f64.const -0x1p1024) drop) ^^^^^^^^^ out/third_party/testsuite/const.wast:109: assert_malformed passed: - out/third_party/testsuite/const/const.42.wast:1:18: invalid literal "0x1.fffffffffffff8p1023" + out/third_party/testsuite/const/const.42.wast:1:18: error: invalid literal "0x1.fffffffffffff8p1023" (func (f64.const 0x1.fffffffffffff8p1023) drop) ^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:113: assert_malformed passed: - out/third_party/testsuite/const/const.43.wast:1:18: invalid literal "-0x1.fffffffffffff8p1023" + out/third_party/testsuite/const/const.43.wast:1:18: error: invalid literal "-0x1.fffffffffffff8p1023" (func (f64.const -0x1.fffffffffffff8p1023) drop) ^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:120: assert_malformed passed: - out/third_party/testsuite/const/const.46.wast:1:18: invalid literal "1e309" + out/third_party/testsuite/const/const.46.wast:1:18: error: invalid literal "1e309" (func (f64.const 1e309) drop) ^^^^^ out/third_party/testsuite/const.wast:124: assert_malformed passed: - out/third_party/testsuite/const/const.47.wast:1:18: invalid literal "-1e309" + out/third_party/testsuite/const/const.47.wast:1:18: error: invalid literal "-1e309" (func (f64.const -1e309) drop) ^^^^^^ out/third_party/testsuite/const.wast:131: assert_malformed passed: - out/third_party/testsuite/const/const.50.wast:1:18: invalid literal "269653970229347356221791135597556535197105851288767494898376215204735891170042808140884337949150317257310688430271573696351481990334196274152701320055306275479074865864826923114368235135583993416113802762682700913456874855354834422248712838998185022412196739306217084753107265771378949821875606039276187287552" + out/third_party/testsuite/const/const.50.wast:1:18: error: invalid literal "269653970229347356221791135597556535197105851288767494898376215204735891170042808140884337949150317257310688430271573696351481990334196274152701320055306275479074865864826923114368235135583993416113802762682700913456874855354834422248712838998185022412196739306217084753107265771378949821875606039276187287552" (func (f64.const 269653970229347356221791135597556535197105851288767494898376... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/const.wast:135: assert_malformed passed: - out/third_party/testsuite/const/const.51.wast:1:18: invalid literal "-269653970229347356221791135597556535197105851288767494898376215204735891170042808140884337949150317257310688430271573696351481990334196274152701320055306275479074865864826923114368235135583993416113802762682700913456874855354834422248712838998185022412196739306217084753107265771378949821875606039276187287552" + out/third_party/testsuite/const/const.51.wast:1:18: error: invalid literal "-269653970229347356221791135597556535197105851288767494898376215204735891170042808140884337949150317257310688430271573696351481990334196274152701320055306275479074865864826923114368235135583993416113802762682700913456874855354834422248712838998185022412196739306217084753107265771378949821875606039276187287552" (func (f64.const -26965397022934735622179113559755653519710585128876749489837... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24/24 tests passed. diff --git a/test/spec/custom_section.txt b/test/spec/custom_section.txt index 4d094f60..80ebd3bf 100644 --- a/test/spec/custom_section.txt +++ b/test/spec/custom_section.txt @@ -2,16 +2,16 @@ ;;; STDIN_FILE: third_party/testsuite/custom_section.wast (;; STDOUT ;;; out/third_party/testsuite/custom_section.wast:61: assert_malformed passed: - error: @0x00000009: unable to read u32 leb128: section size + 0000009: error: unable to read u32 leb128: section size out/third_party/testsuite/custom_section.wast:69: assert_malformed passed: - error: @0x0000000a: unable to read u32 leb128: string length + 000000a: error: unable to read u32 leb128: string length out/third_party/testsuite/custom_section.wast:77: assert_malformed passed: - error: @0x0000000a: invalid section size: extends past end + 000000a: error: invalid section size: extends past end out/third_party/testsuite/custom_section.wast:85: assert_malformed passed: - error: @0x00000031: invalid section code: 36; max is 11 + 0000031: error: invalid section code: 36; max is 11 out/third_party/testsuite/custom_section.wast:94: assert_malformed passed: - error: @0x0000003e: function signature count != function body count + 000003e: error: function signature count != function body count out/third_party/testsuite/custom_section.wast:107: assert_malformed passed: - error: @0x0000000a: invalid section size: extends past end + 000000a: error: invalid section size: extends past end 6/6 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/exports.txt b/test/spec/exports.txt index 203d2bb9..7f66be9d 100644 --- a/test/spec/exports.txt +++ b/test/spec/exports.txt @@ -2,66 +2,66 @@ ;;; STDIN_FILE: third_party/testsuite/exports.wast (;; STDOUT ;;; out/third_party/testsuite/exports.wast:29: assert_invalid passed: - error: @0x00000019: invalid export func index: 1 + 0000019: error: invalid export func index: 1 out/third_party/testsuite/exports.wast:33: assert_invalid passed: error: duplicate export "a" - error: @0x0000001d: OnExport callback failed + 000001d: error: OnExport callback failed out/third_party/testsuite/exports.wast:37: assert_invalid passed: error: duplicate export "a" - error: @0x0000001e: OnExport callback failed + 000001e: error: OnExport callback failed out/third_party/testsuite/exports.wast:41: assert_invalid passed: error: duplicate export "a" - error: @0x00000025: OnExport callback failed + 0000025: error: OnExport callback failed out/third_party/testsuite/exports.wast:45: assert_invalid passed: error: duplicate export "a" - error: @0x00000023: OnExport callback failed + 0000023: error: OnExport callback failed out/third_party/testsuite/exports.wast:49: assert_invalid passed: error: duplicate export "a" - error: @0x00000022: OnExport callback failed + 0000022: error: OnExport callback failed out/third_party/testsuite/exports.wast:78: assert_invalid passed: - error: @0x00000017: invalid export global index: 1 + 0000017: error: invalid export global index: 1 out/third_party/testsuite/exports.wast:82: assert_invalid passed: error: duplicate export "a" - error: @0x0000001b: OnExport callback failed + 000001b: error: OnExport callback failed out/third_party/testsuite/exports.wast:86: assert_invalid passed: error: duplicate export "a" - error: @0x00000020: OnExport callback failed + 0000020: error: OnExport callback failed out/third_party/testsuite/exports.wast:90: assert_invalid passed: error: duplicate export "a" - error: @0x00000025: OnExport callback failed + 0000025: error: OnExport callback failed out/third_party/testsuite/exports.wast:94: assert_invalid passed: error: duplicate export "a" - error: @0x00000021: OnExport callback failed + 0000021: error: OnExport callback failed out/third_party/testsuite/exports.wast:98: assert_invalid passed: error: duplicate export "a" - error: @0x00000020: OnExport callback failed + 0000020: error: OnExport callback failed out/third_party/testsuite/exports.wast:126: assert_invalid passed: - error: @0x00000015: invalid export table index: 1 + 0000015: error: invalid export table index: 1 out/third_party/testsuite/exports.wast:130: assert_invalid passed: error: duplicate export "a" - error: @0x00000019: OnExport callback failed + 0000019: error: OnExport callback failed out/third_party/testsuite/exports.wast:139: assert_invalid passed: error: duplicate export "a" - error: @0x00000023: OnExport callback failed + 0000023: error: OnExport callback failed out/third_party/testsuite/exports.wast:143: assert_invalid passed: error: duplicate export "a" - error: @0x00000021: OnExport callback failed + 0000021: error: OnExport callback failed out/third_party/testsuite/exports.wast:147: assert_invalid passed: error: duplicate export "a" - error: @0x0000001e: OnExport callback failed + 000001e: error: OnExport callback failed out/third_party/testsuite/exports.wast:175: assert_invalid passed: - error: @0x00000014: invalid export memory index: 1 + 0000014: error: invalid export memory index: 1 out/third_party/testsuite/exports.wast:179: assert_invalid passed: error: duplicate export "a" - error: @0x00000018: OnExport callback failed + 0000018: error: OnExport callback failed out/third_party/testsuite/exports.wast:188: assert_invalid passed: error: duplicate export "a" - error: @0x00000022: OnExport callback failed + 0000022: error: OnExport callback failed out/third_party/testsuite/exports.wast:192: assert_invalid passed: error: duplicate export "a" - error: @0x00000020: OnExport callback failed + 0000020: error: OnExport callback failed out/third_party/testsuite/exports.wast:196: assert_invalid passed: error: duplicate export "a" - error: @0x0000001e: OnExport callback failed + 000001e: error: OnExport callback failed 28/28 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/func.txt b/test/spec/func.txt index 9ea8368f..60ae2038 100644 --- a/test/spec/func.txt +++ b/test/spec/func.txt @@ -3,114 +3,114 @@ (;; STDOUT ;;; out/third_party/testsuite/func.wast:317: assert_invalid passed: error: type mismatch in implicit return, expected i64 but got i32. - error: @0x0000001d: EndFunctionBody callback failed + 000001d: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:321: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001c: OnConvertExpr callback failed + 000001c: error: OnConvertExpr callback failed out/third_party/testsuite/func.wast:325: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/func.wast:333: assert_invalid passed: error: type mismatch in implicit return, expected i64 but got i32. - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:337: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001b: OnConvertExpr callback failed + 000001b: error: OnConvertExpr callback failed out/third_party/testsuite/func.wast:341: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x0000001c: OnUnaryExpr callback failed + 000001c: error: OnUnaryExpr callback failed out/third_party/testsuite/func.wast:349: assert_invalid passed: - error: @0x0000000e: result count must be 0 or 1 + 000000e: error: result count must be 0 or 1 out/third_party/testsuite/func.wast:353: assert_invalid passed: - error: @0x0000000e: result count must be 0 or 1 + 000000e: error: result count must be 0 or 1 out/third_party/testsuite/func.wast:362: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000019: EndFunctionBody callback failed + 0000019: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:366: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000019: EndFunctionBody callback failed + 0000019: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:370: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000019: EndFunctionBody callback failed + 0000019: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:374: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000019: EndFunctionBody callback failed + 0000019: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:379: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:385: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:391: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got f32. - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/func.wast:398: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x00000019: OnReturnExpr callback failed + 0000019: error: OnReturnExpr callback failed out/third_party/testsuite/func.wast:404: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x0000001a: OnReturnExpr callback failed + 000001a: error: OnReturnExpr callback failed out/third_party/testsuite/func.wast:410: assert_invalid passed: error: type mismatch in return, expected i32 but got i64. - error: @0x0000001b: OnReturnExpr callback failed + 000001b: error: OnReturnExpr callback failed out/third_party/testsuite/func.wast:417: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x00000019: OnReturnExpr callback failed + 0000019: error: OnReturnExpr callback failed out/third_party/testsuite/func.wast:423: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x0000001a: OnReturnExpr callback failed + 000001a: error: OnReturnExpr callback failed out/third_party/testsuite/func.wast:429: assert_invalid passed: error: type mismatch in return, expected i32 but got i64. - error: @0x0000001b: OnReturnExpr callback failed + 000001b: error: OnReturnExpr callback failed out/third_party/testsuite/func.wast:435: assert_invalid passed: error: type mismatch in return, expected i32 but got i64. - error: @0x0000001b: OnReturnExpr callback failed + 000001b: error: OnReturnExpr callback failed out/third_party/testsuite/func.wast:442: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001a: OnBrExpr callback failed + 000001a: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:448: assert_invalid passed: error: type mismatch in br, expected i32 but got f32. - error: @0x0000001f: OnBrExpr callback failed + 000001f: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:454: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001a: OnBrExpr callback failed + 000001a: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:460: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x0000001c: OnBrExpr callback failed + 000001c: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:466: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x0000001c: OnBrExpr callback failed + 000001c: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:473: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001c: OnBrExpr callback failed + 000001c: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:479: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001d: OnBrExpr callback failed + 000001d: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:485: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x0000001e: OnBrExpr callback failed + 000001e: error: OnBrExpr callback failed out/third_party/testsuite/func.wast:495: assert_malformed passed: - out/third_party/testsuite/func/func.31.wast:1:14: syntax error, unexpected LOCAL + out/third_party/testsuite/func/func.31.wast:1:14: error: syntax error, unexpected LOCAL (func (nop) (local i32)) ^^^^^ out/third_party/testsuite/func.wast:499: assert_malformed passed: - out/third_party/testsuite/func/func.32.wast:1:14: syntax error, unexpected PARAM + out/third_party/testsuite/func/func.32.wast:1:14: error: syntax error, unexpected PARAM (func (nop) (param i32)) ^^^^^ out/third_party/testsuite/func.wast:503: assert_malformed passed: - out/third_party/testsuite/func/func.33.wast:1:14: syntax error, unexpected RESULT + out/third_party/testsuite/func/func.33.wast:1:14: error: syntax error, unexpected RESULT (func (nop) (result i32)) ^^^^^^ out/third_party/testsuite/func.wast:507: assert_malformed passed: - out/third_party/testsuite/func/func.34.wast:1:20: syntax error, unexpected PARAM + out/third_party/testsuite/func/func.34.wast:1:20: error: syntax error, unexpected PARAM (func (local i32) (param i32)) ^^^^^ out/third_party/testsuite/func.wast:511: assert_malformed passed: - out/third_party/testsuite/func/func.35.wast:1:20: syntax error, unexpected RESULT + out/third_party/testsuite/func/func.35.wast:1:20: error: syntax error, unexpected RESULT (func (local i32) (result i32) (get_local 0)) ^^^^^^ out/third_party/testsuite/func.wast:515: assert_malformed passed: - out/third_party/testsuite/func/func.36.wast:1:21: syntax error, unexpected PARAM + out/third_party/testsuite/func/func.36.wast:1:21: error: syntax error, unexpected PARAM (func (result i32) (param i32) (get_local 0)) ^^^^^ 102/102 tests passed. diff --git a/test/spec/func_ptrs.txt b/test/spec/func_ptrs.txt index da5e7e11..b474762f 100644 --- a/test/spec/func_ptrs.txt +++ b/test/spec/func_ptrs.txt @@ -4,19 +4,19 @@ called host spectest.print(i32:83) => four(i32:83) => out/third_party/testsuite/func_ptrs.wast:31: assert_invalid passed: - error: @0x0000000b: elem section without table section + 000000b: error: elem section without table section out/third_party/testsuite/func_ptrs.wast:32: assert_invalid passed: - error: @0x00000015: elem section without table section + 0000015: error: elem section without table section out/third_party/testsuite/func_ptrs.wast:35: assert_invalid passed: error: type mismatch in elem segment, expected i32 but got i64 - error: @0x00000015: EndElemSegmentInitExpr callback failed + 0000015: error: EndElemSegmentInitExpr callback failed out/third_party/testsuite/func_ptrs.wast:39: assert_invalid passed: - error: @0x00000015: expected END opcode after initializer expression + 0000015: error: expected END opcode after initializer expression out/third_party/testsuite/func_ptrs.wast:43: assert_invalid passed: - error: @0x00000013: unexpected opcode in initializer expression: 1 (0x1) + 0000013: error: unexpected opcode in initializer expression: 1 (0x1) out/third_party/testsuite/func_ptrs.wast:47: assert_invalid passed: - error: @0x0000000c: invalid function signature index: 42 + 000000c: error: invalid function signature index: 42 out/third_party/testsuite/func_ptrs.wast:48: assert_invalid passed: - error: @0x0000001c: invalid import signature index + 000001c: error: invalid import signature index 33/33 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/get_local.txt b/test/spec/get_local.txt index aa2fbfbb..30dc45e4 100644 --- a/test/spec/get_local.txt +++ b/test/spec/get_local.txt @@ -3,39 +3,39 @@ (;; STDOUT ;;; out/third_party/testsuite/get_local.wast:91: assert_invalid passed: error: type mismatch in implicit return, expected i64 but got i32. - error: @0x0000001d: EndFunctionBody callback failed + 000001d: error: EndFunctionBody callback failed out/third_party/testsuite/get_local.wast:95: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001c: OnConvertExpr callback failed + 000001c: error: OnConvertExpr callback failed out/third_party/testsuite/get_local.wast:99: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/get_local.wast:107: assert_invalid passed: error: type mismatch in implicit return, expected i64 but got i32. - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/get_local.wast:111: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001b: OnConvertExpr callback failed + 000001b: error: OnConvertExpr callback failed out/third_party/testsuite/get_local.wast:115: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x0000001c: OnUnaryExpr callback failed + 000001c: error: OnUnaryExpr callback failed out/third_party/testsuite/get_local.wast:123: assert_invalid passed: error: invalid local_index: 3 (max 2) - error: @0x0000001d: OnGetLocalExpr callback failed + 000001d: error: OnGetLocalExpr callback failed out/third_party/testsuite/get_local.wast:127: assert_invalid passed: error: invalid local_index: 14324343 (max 2) - error: @0x00000020: OnGetLocalExpr callback failed + 0000020: error: OnGetLocalExpr callback failed out/third_party/testsuite/get_local.wast:132: assert_invalid passed: error: invalid local_index: 2 (max 2) - error: @0x0000001b: OnGetLocalExpr callback failed + 000001b: error: OnGetLocalExpr callback failed out/third_party/testsuite/get_local.wast:136: assert_invalid passed: error: invalid local_index: 714324343 (max 2) - error: @0x00000021: OnGetLocalExpr callback failed + 0000021: error: OnGetLocalExpr callback failed out/third_party/testsuite/get_local.wast:141: assert_invalid passed: error: invalid local_index: 3 (max 3) - error: @0x0000001e: OnGetLocalExpr callback failed + 000001e: error: OnGetLocalExpr callback failed out/third_party/testsuite/get_local.wast:145: assert_invalid passed: error: invalid local_index: 214324343 (max 3) - error: @0x00000021: OnGetLocalExpr callback failed + 0000021: error: OnGetLocalExpr callback failed 22/22 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/globals.txt b/test/spec/globals.txt index f4584586..1bde1463 100644 --- a/test/spec/globals.txt +++ b/test/spec/globals.txt @@ -3,50 +3,50 @@ (;; STDOUT ;;; out/third_party/testsuite/globals.wast:50: assert_invalid passed: error: can't set_global on immutable global at index 0. - error: @0x00000026: OnSetGlobalExpr callback failed + 0000026: error: OnSetGlobalExpr callback failed out/third_party/testsuite/globals.wast:55: assert_invalid passed: error: unknown import module "m" - error: @0x00000012: OnImport callback failed + 0000012: error: OnImport callback failed out/third_party/testsuite/globals.wast:60: assert_invalid passed: error: unknown import module "m" - error: @0x00000012: OnImport callback failed + 0000012: error: OnImport callback failed out/third_party/testsuite/globals.wast:65: assert_invalid passed: error: mutable globals cannot be exported - error: @0x0000001a: OnExport callback failed + 000001a: error: OnExport callback failed out/third_party/testsuite/globals.wast:70: assert_invalid passed: error: mutable globals cannot be exported - error: @0x0000001a: OnExport callback failed + 000001a: error: OnExport callback failed out/third_party/testsuite/globals.wast:75: assert_invalid passed: - error: @0x00000013: expected END opcode after initializer expression + 0000013: error: expected END opcode after initializer expression out/third_party/testsuite/globals.wast:80: assert_invalid passed: - error: @0x0000000e: unexpected opcode in initializer expression: 32 (0x20) + 000000e: error: unexpected opcode in initializer expression: 32 (0x20) out/third_party/testsuite/globals.wast:85: assert_invalid passed: - error: @0x00000013: expected END opcode after initializer expression + 0000013: error: expected END opcode after initializer expression out/third_party/testsuite/globals.wast:90: assert_invalid passed: - error: @0x00000010: expected END opcode after initializer expression + 0000010: error: expected END opcode after initializer expression out/third_party/testsuite/globals.wast:95: assert_invalid passed: - error: @0x0000000e: unexpected opcode in initializer expression: 1 (0x1) + 000000e: error: unexpected opcode in initializer expression: 1 (0x1) out/third_party/testsuite/globals.wast:100: assert_invalid passed: error: type mismatch in global, expected i32 but got f32. - error: @0x00000013: EndGlobalInitExpr callback failed + 0000013: error: EndGlobalInitExpr callback failed out/third_party/testsuite/globals.wast:105: assert_invalid passed: - error: @0x00000010: expected END opcode after initializer expression + 0000010: error: expected END opcode after initializer expression out/third_party/testsuite/globals.wast:110: assert_invalid passed: error: type mismatch in global, expected i32 but got void. - error: @0x0000000e: EndGlobalInitExpr callback failed + 000000e: error: EndGlobalInitExpr callback failed out/third_party/testsuite/globals.wast:115: assert_invalid passed: error: initializer expression can only reference an imported global - error: @0x0000000f: OnInitExprGetGlobalExpr callback failed + 000000f: error: OnInitExprGetGlobalExpr callback failed out/third_party/testsuite/globals.wast:120: assert_invalid passed: error: initializer expression can only reference an imported global - error: @0x0000000f: OnInitExprGetGlobalExpr callback failed + 000000f: error: OnInitExprGetGlobalExpr callback failed out/third_party/testsuite/globals.wast:128: assert_malformed passed: - error: @0x00000022: global mutability must be 0 or 1 + 0000022: error: global mutability must be 0 or 1 out/third_party/testsuite/globals.wast:141: assert_malformed passed: - error: @0x00000022: global mutability must be 0 or 1 + 0000022: error: global mutability must be 0 or 1 out/third_party/testsuite/globals.wast:158: assert_malformed passed: - error: @0x00000011: global mutability must be 0 or 1 + 0000011: error: global mutability must be 0 or 1 out/third_party/testsuite/globals.wast:170: assert_malformed passed: - error: @0x00000011: global mutability must be 0 or 1 + 0000011: error: global mutability must be 0 or 1 35/35 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/if.txt b/test/spec/if.txt index f2d3c2ca..661d1d83 100644 --- a/test/spec/if.txt +++ b/test/spec/if.txt @@ -3,154 +3,154 @@ (;; STDOUT ;;; out/third_party/testsuite/if.wast:183: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:187: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:191: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:195: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:200: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:204: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:208: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:212: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:217: assert_invalid passed: error: type stack at end of if is 1, expected 0 - error: @0x0000001e: OnEndExpr callback failed + 000001e: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:223: assert_invalid passed: error: type stack at end of if is 1, expected 0 - error: @0x0000001e: OnEndExpr callback failed + 000001e: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:229: assert_invalid passed: error: type stack at end of if false branch is 1, expected 0 - error: @0x0000001f: OnEndExpr callback failed + 000001f: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:235: assert_invalid passed: error: type stack at end of if true branch is 1, expected 0 - error: @0x0000001e: OnElseExpr callback failed + 000001e: error: OnElseExpr callback failed out/third_party/testsuite/if.wast:242: assert_invalid passed: error: type stack size too small at if true branch. got 0, expected at least 1 - error: @0x0000001d: OnElseExpr callback failed + 000001d: error: OnElseExpr callback failed out/third_party/testsuite/if.wast:248: assert_invalid passed: error: if without else cannot have type signature. - error: @0x0000001f: OnEndExpr callback failed + 000001f: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:254: assert_invalid passed: error: if without else cannot have type signature. error: type stack size too small at if. got 0, expected at least 1 - error: @0x0000001d: OnEndExpr callback failed + 000001d: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:260: assert_invalid passed: error: if without else cannot have type signature. - error: @0x0000001f: OnEndExpr callback failed + 000001f: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:267: assert_invalid passed: error: type stack size too small at if true branch. got 0, expected at least 1 - error: @0x0000001e: OnElseExpr callback failed + 000001e: error: OnElseExpr callback failed out/third_party/testsuite/if.wast:273: assert_invalid passed: error: type stack size too small at if false branch. got 0, expected at least 1 - error: @0x00000021: OnEndExpr callback failed + 0000021: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:279: assert_invalid passed: error: type stack size too small at if true branch. got 0, expected at least 1 - error: @0x0000001e: OnElseExpr callback failed + 000001e: error: OnElseExpr callback failed out/third_party/testsuite/if.wast:286: assert_invalid passed: error: type mismatch in if true branch, expected i32 but got i64. - error: @0x0000001f: OnElseExpr callback failed + 000001f: error: OnElseExpr callback failed out/third_party/testsuite/if.wast:292: assert_invalid passed: error: type mismatch in if false branch, expected i32 but got i64. - error: @0x00000022: OnEndExpr callback failed + 0000022: error: OnEndExpr callback failed out/third_party/testsuite/if.wast:298: assert_invalid passed: error: type mismatch in if true branch, expected i32 but got i64. - error: @0x0000001f: OnElseExpr callback failed + 000001f: error: OnElseExpr callback failed out/third_party/testsuite/if.wast:304: assert_invalid passed: error: type mismatch in if true branch, expected i32 but got i64. - error: @0x0000001f: OnElseExpr callback failed + 000001f: error: OnElseExpr callback failed out/third_party/testsuite/if.wast:311: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000025: EndFunctionBody callback failed + 0000025: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:321: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000025: EndFunctionBody callback failed + 0000025: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:331: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000027: EndFunctionBody callback failed + 0000027: error: EndFunctionBody callback failed out/third_party/testsuite/if.wast:342: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001e: OnBrExpr callback failed + 000001e: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:348: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x00000021: OnBrExpr callback failed + 0000021: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:354: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001e: OnBrExpr callback failed + 000001e: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:363: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x00000021: OnBrExpr callback failed + 0000021: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:372: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001f: OnBrExpr callback failed + 000001f: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:381: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x00000022: OnBrExpr callback failed + 0000022: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:391: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x00000020: OnBrExpr callback failed + 0000020: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:400: assert_invalid passed: error: type mismatch in br, expected i32 but got i64. - error: @0x00000023: OnBrExpr callback failed + 0000023: error: OnBrExpr callback failed out/third_party/testsuite/if.wast:411: assert_malformed passed: - out/third_party/testsuite/if/if.35.wast:1:14: unexpected label "$l" + out/third_party/testsuite/if/if.35.wast:1:14: error: unexpected label "$l" (func if end $l) ^^ out/third_party/testsuite/if.wast:415: assert_malformed passed: - out/third_party/testsuite/if/if.36.wast:1:17: mismatching label "$a" != "$l" + out/third_party/testsuite/if/if.36.wast:1:17: error: mismatching label "$a" != "$l" (func if $a end $l) ^^ out/third_party/testsuite/if.wast:419: assert_malformed passed: - out/third_party/testsuite/if/if.37.wast:1:15: unexpected label "$l" + out/third_party/testsuite/if/if.37.wast:1:15: error: unexpected label "$l" (func if else $l end) ^^ out/third_party/testsuite/if.wast:423: assert_malformed passed: - out/third_party/testsuite/if/if.38.wast:1:18: mismatching label "$a" != "$l" + out/third_party/testsuite/if/if.38.wast:1:18: error: mismatching label "$a" != "$l" (func if $a else $l end) ^^ out/third_party/testsuite/if.wast:427: assert_malformed passed: - out/third_party/testsuite/if/if.39.wast:1:19: unexpected label "$l" + out/third_party/testsuite/if/if.39.wast:1:19: error: unexpected label "$l" (func if else end $l) ^^ out/third_party/testsuite/if.wast:431: assert_malformed passed: - out/third_party/testsuite/if/if.40.wast:1:15: unexpected label "$l" + out/third_party/testsuite/if/if.40.wast:1:15: error: unexpected label "$l" (func if else $l end $l) ^^ - out/third_party/testsuite/if/if.40.wast:1:22: unexpected label "$l" + out/third_party/testsuite/if/if.40.wast:1:22: error: unexpected label "$l" (func if else $l end $l) ^^ out/third_party/testsuite/if.wast:435: assert_malformed passed: - out/third_party/testsuite/if/if.41.wast:1:15: unexpected label "$l1" + out/third_party/testsuite/if/if.41.wast:1:15: error: unexpected label "$l1" (func if else $l1 end $l2) ^^^ - out/third_party/testsuite/if/if.41.wast:1:23: unexpected label "$l2" + out/third_party/testsuite/if/if.41.wast:1:23: error: unexpected label "$l2" (func if else $l1 end $l2) ^^^ out/third_party/testsuite/if.wast:439: assert_malformed passed: - out/third_party/testsuite/if/if.42.wast:1:22: mismatching label "$a" != "$l" + out/third_party/testsuite/if/if.42.wast:1:22: error: mismatching label "$a" != "$l" (func if $a else end $l) ^^ out/third_party/testsuite/if.wast:443: assert_malformed passed: - out/third_party/testsuite/if/if.43.wast:1:25: mismatching label "$a" != "$l" + out/third_party/testsuite/if/if.43.wast:1:25: error: mismatching label "$a" != "$l" (func if $a else $a end $l) ^^ out/third_party/testsuite/if.wast:447: assert_malformed passed: - out/third_party/testsuite/if/if.44.wast:1:18: mismatching label "$a" != "$l" + out/third_party/testsuite/if/if.44.wast:1:18: error: mismatching label "$a" != "$l" (func if $a else $l end $l) ^^ - out/third_party/testsuite/if/if.44.wast:1:25: mismatching label "$a" != "$l" + out/third_party/testsuite/if/if.44.wast:1:25: error: mismatching label "$a" != "$l" (func if $a else $l end $l) ^^ 82/82 tests passed. diff --git a/test/spec/imports.txt b/test/spec/imports.txt index ff1cf754..1cd34d11 100644 --- a/test/spec/imports.txt +++ b/test/spec/imports.txt @@ -13,250 +13,250 @@ called host spectest.print(f64:24.000000) => called host spectest.print(f64:24.000000) => out/third_party/testsuite/imports.wast:95: assert_unlinkable passed: error: unknown module field "unknown" - error: @0x00000020: OnImport callback failed + 0000020: error: OnImport callback failed out/third_party/testsuite/imports.wast:99: assert_unlinkable passed: error: unknown host function import "spectest.unknown" - error: @0x00000024: OnImportFunc callback failed + 0000024: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:104: assert_unlinkable passed: error: import signature mismatch - error: @0x0000001e: OnImportFunc callback failed + 000001e: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:108: assert_unlinkable passed: error: import signature mismatch - error: @0x0000001e: OnImportFunc callback failed + 000001e: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:112: assert_unlinkable passed: error: import signature mismatch - error: @0x0000001f: OnImportFunc callback failed + 000001f: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:116: assert_unlinkable passed: error: import signature mismatch - error: @0x00000021: OnImportFunc callback failed + 0000021: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:120: assert_unlinkable passed: error: import signature mismatch - error: @0x00000022: OnImportFunc callback failed + 0000022: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:124: assert_unlinkable passed: error: import signature mismatch - error: @0x00000022: OnImportFunc callback failed + 0000022: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:128: assert_unlinkable passed: error: import signature mismatch - error: @0x00000022: OnImportFunc callback failed + 0000022: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:132: assert_unlinkable passed: error: import signature mismatch - error: @0x00000023: OnImportFunc callback failed + 0000023: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:136: assert_unlinkable passed: error: import signature mismatch - error: @0x00000022: OnImportFunc callback failed + 0000022: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:140: assert_unlinkable passed: error: import signature mismatch - error: @0x00000023: OnImportFunc callback failed + 0000023: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:144: assert_unlinkable passed: error: import signature mismatch - error: @0x00000023: OnImportFunc callback failed + 0000023: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:148: assert_unlinkable passed: error: import signature mismatch - error: @0x00000023: OnImportFunc callback failed + 0000023: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:152: assert_unlinkable passed: error: import signature mismatch - error: @0x00000024: OnImportFunc callback failed + 0000024: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:156: assert_unlinkable passed: error: import signature mismatch - error: @0x00000026: OnImportFunc callback failed + 0000026: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:160: assert_unlinkable passed: error: import signature mismatch - error: @0x00000027: OnImportFunc callback failed + 0000027: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:164: assert_unlinkable passed: error: import signature mismatch - error: @0x00000027: OnImportFunc callback failed + 0000027: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:169: assert_unlinkable passed: error: expected import "test.global-i32" to have kind func, not global - error: @0x00000024: OnImportFunc callback failed + 0000024: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:173: assert_unlinkable passed: error: expected import "test.table-10-inf" to have kind func, not table - error: @0x00000025: OnImportFunc callback failed + 0000025: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:177: assert_unlinkable passed: error: expected import "test.memory-2-inf" to have kind func, not memory - error: @0x00000025: OnImportFunc callback failed + 0000025: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:181: assert_unlinkable passed: error: unknown host function import "spectest.global" - error: @0x00000023: OnImportFunc callback failed + 0000023: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:185: assert_unlinkable passed: error: unknown host function import "spectest.table" - error: @0x00000022: OnImportFunc callback failed + 0000022: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:189: assert_unlinkable passed: error: unknown host function import "spectest.memory" - error: @0x00000023: OnImportFunc callback failed + 0000023: error: OnImportFunc callback failed out/third_party/testsuite/imports.wast:223: assert_unlinkable passed: error: unknown module field "unknown" - error: @0x0000001b: OnImport callback failed + 000001b: error: OnImport callback failed out/third_party/testsuite/imports.wast:227: assert_unlinkable passed: error: unknown host global import "spectest.unknown" - error: @0x0000001f: OnImportGlobal callback failed + 000001f: error: OnImportGlobal callback failed out/third_party/testsuite/imports.wast:232: assert_unlinkable passed: error: expected import "test.func" to have kind global, not func - error: @0x00000018: OnImportGlobal callback failed + 0000018: error: OnImportGlobal callback failed out/third_party/testsuite/imports.wast:236: assert_unlinkable passed: error: expected import "test.table-10-inf" to have kind global, not table - error: @0x00000020: OnImportGlobal callback failed + 0000020: error: OnImportGlobal callback failed out/third_party/testsuite/imports.wast:240: assert_unlinkable passed: error: expected import "test.memory-2-inf" to have kind global, not memory - error: @0x00000020: OnImportGlobal callback failed + 0000020: error: OnImportGlobal callback failed out/third_party/testsuite/imports.wast:244: assert_unlinkable passed: error: unknown host global import "spectest.print" - error: @0x0000001d: OnImportGlobal callback failed + 000001d: error: OnImportGlobal callback failed out/third_party/testsuite/imports.wast:248: assert_unlinkable passed: error: unknown host global import "spectest.table" - error: @0x0000001d: OnImportGlobal callback failed + 000001d: error: OnImportGlobal callback failed out/third_party/testsuite/imports.wast:252: assert_unlinkable passed: error: unknown host global import "spectest.memory" - error: @0x0000001e: OnImportGlobal callback failed + 000001e: error: OnImportGlobal callback failed out/third_party/testsuite/imports.wast:294: assert_invalid passed: error: unknown import module "" - error: @0x00000011: OnImport callback failed + 0000011: error: OnImport callback failed out/third_party/testsuite/imports.wast:298: assert_invalid passed: error: unknown import module "" - error: @0x00000011: OnImport callback failed + 0000011: error: OnImport callback failed out/third_party/testsuite/imports.wast:302: assert_invalid passed: - error: @0x0000000b: table count (2) must be 0 or 1 + 000000b: error: table count (2) must be 0 or 1 out/third_party/testsuite/imports.wast:319: assert_unlinkable passed: error: unknown module field "unknown" - error: @0x0000001c: OnImport callback failed + 000001c: error: OnImport callback failed out/third_party/testsuite/imports.wast:323: assert_unlinkable passed: error: unknown host table import "spectest.unknown" - error: @0x00000020: OnImportTable callback failed + 0000020: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:328: assert_unlinkable passed: error: actual size (10) smaller than declared (12) - error: @0x00000021: OnImportTable callback failed + 0000021: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:332: assert_unlinkable passed: error: max size (unspecified) larger than declared (20) - error: @0x00000022: OnImportTable callback failed + 0000022: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:336: assert_unlinkable passed: error: actual size (10) smaller than declared (12) - error: @0x0000001e: OnImportTable callback failed + 000001e: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:340: assert_unlinkable passed: error: max size (20) larger than declared (15) - error: @0x0000001f: OnImportTable callback failed + 000001f: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:345: assert_unlinkable passed: error: expected import "test.func" to have kind table, not func - error: @0x00000019: OnImportTable callback failed + 0000019: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:349: assert_unlinkable passed: error: expected import "test.global-i32" to have kind table, not global - error: @0x0000001f: OnImportTable callback failed + 000001f: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:353: assert_unlinkable passed: error: expected import "test.memory-2-inf" to have kind table, not memory - error: @0x00000021: OnImportTable callback failed + 0000021: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:357: assert_unlinkable passed: error: unknown host table import "spectest.print" - error: @0x0000001e: OnImportTable callback failed + 000001e: error: OnImportTable callback failed out/third_party/testsuite/imports.wast:389: assert_invalid passed: error: unknown import module "" - error: @0x00000010: OnImport callback failed + 0000010: error: OnImport callback failed out/third_party/testsuite/imports.wast:393: assert_invalid passed: error: unknown import module "" - error: @0x00000010: OnImport callback failed + 0000010: error: OnImport callback failed out/third_party/testsuite/imports.wast:397: assert_invalid passed: - error: @0x0000000b: memory count must be 0 or 1 + 000000b: error: memory count must be 0 or 1 out/third_party/testsuite/imports.wast:412: assert_unlinkable passed: error: unknown module field "unknown" - error: @0x0000001b: OnImport callback failed + 000001b: error: OnImport callback failed out/third_party/testsuite/imports.wast:416: assert_unlinkable passed: error: unknown host memory import "spectest.unknown" - error: @0x0000001f: OnImportMemory callback failed + 000001f: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:421: assert_unlinkable passed: error: actual size (2) smaller than declared (3) - error: @0x00000020: OnImportMemory callback failed + 0000020: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:425: assert_unlinkable passed: error: max size (unspecified) larger than declared (3) - error: @0x00000021: OnImportMemory callback failed + 0000021: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:429: assert_unlinkable passed: error: actual size (1) smaller than declared (2) - error: @0x0000001e: OnImportMemory callback failed + 000001e: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:433: assert_unlinkable passed: error: max size (2) larger than declared (1) - error: @0x0000001f: OnImportMemory callback failed + 000001f: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:438: assert_unlinkable passed: error: expected import "test.func-i32" to have kind memory, not func - error: @0x0000001c: OnImportMemory callback failed + 000001c: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:442: assert_unlinkable passed: error: expected import "test.global-i32" to have kind memory, not global - error: @0x0000001e: OnImportMemory callback failed + 000001e: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:446: assert_unlinkable passed: error: expected import "test.table-10-inf" to have kind memory, not table - error: @0x00000020: OnImportMemory callback failed + 0000020: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:450: assert_unlinkable passed: error: unknown host memory import "spectest.print" - error: @0x0000001d: OnImportMemory callback failed + 000001d: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:454: assert_unlinkable passed: error: unknown host memory import "spectest.global" - error: @0x0000001e: OnImportMemory callback failed + 000001e: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:458: assert_unlinkable passed: error: unknown host memory import "spectest.table" - error: @0x0000001d: OnImportMemory callback failed + 000001d: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:463: assert_unlinkable passed: error: actual size (1) smaller than declared (2) - error: @0x0000001e: OnImportMemory callback failed + 000001e: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:467: assert_unlinkable passed: error: max size (2) larger than declared (1) - error: @0x0000001f: OnImportMemory callback failed + 000001f: error: OnImportMemory callback failed out/third_party/testsuite/imports.wast:485: assert_malformed passed: - out/third_party/testsuite/imports/imports.99.wast:1:8: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.99.wast:1:8: error: imports must occur before all non-import definitions (func) (import "" "" (func)) ^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:489: assert_malformed passed: - out/third_party/testsuite/imports/imports.100.wast:1:8: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.100.wast:1:8: error: imports must occur before all non-import definitions (func) (import "" "" (global i64)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:493: assert_malformed passed: - out/third_party/testsuite/imports/imports.101.wast:1:8: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.101.wast:1:8: error: imports must occur before all non-import definitions (func) (import "" "" (table 0 anyfunc)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:497: assert_malformed passed: - out/third_party/testsuite/imports/imports.102.wast:1:8: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.102.wast:1:8: error: imports must occur before all non-import definitions (func) (import "" "" (memory 0)) ^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:502: assert_malformed passed: - out/third_party/testsuite/imports/imports.103.wast:1:28: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.103.wast:1:28: error: imports must occur before all non-import definitions (global i64 (i64.const 0)) (import "" "" (func)) ^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:506: assert_malformed passed: - out/third_party/testsuite/imports/imports.104.wast:1:28: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.104.wast:1:28: error: imports must occur before all non-import definitions (global i64 (i64.const 0)) (import "" "" (global f32)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:510: assert_malformed passed: - out/third_party/testsuite/imports/imports.105.wast:1:28: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.105.wast:1:28: error: imports must occur before all non-import definitions (global i64 (i64.const 0)) (import "" "" (table 0 anyfunc)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:514: assert_malformed passed: - out/third_party/testsuite/imports/imports.106.wast:1:28: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.106.wast:1:28: error: imports must occur before all non-import definitions (global i64 (i64.const 0)) (import "" "" (memory 0)) ^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:519: assert_malformed passed: - out/third_party/testsuite/imports/imports.107.wast:1:19: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.107.wast:1:19: error: imports must occur before all non-import definitions (table 0 anyfunc) (import "" "" (func)) ^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:523: assert_malformed passed: - out/third_party/testsuite/imports/imports.108.wast:1:19: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.108.wast:1:19: error: imports must occur before all non-import definitions (table 0 anyfunc) (import "" "" (global i32)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:527: assert_malformed passed: - out/third_party/testsuite/imports/imports.109.wast:1:19: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.109.wast:1:19: error: imports must occur before all non-import definitions (table 0 anyfunc) (import "" "" (table 0 anyfunc)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:531: assert_malformed passed: - out/third_party/testsuite/imports/imports.110.wast:1:19: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.110.wast:1:19: error: imports must occur before all non-import definitions (table 0 anyfunc) (import "" "" (memory 0)) ^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:536: assert_malformed passed: - out/third_party/testsuite/imports/imports.111.wast:1:12: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.111.wast:1:12: error: imports must occur before all non-import definitions (memory 0) (import "" "" (func)) ^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:540: assert_malformed passed: - out/third_party/testsuite/imports/imports.112.wast:1:12: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.112.wast:1:12: error: imports must occur before all non-import definitions (memory 0) (import "" "" (global i32)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:544: assert_malformed passed: - out/third_party/testsuite/imports/imports.113.wast:1:12: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.113.wast:1:12: error: imports must occur before all non-import definitions (memory 0) (import "" "" (table 1 3 anyfunc)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ out/third_party/testsuite/imports.wast:548: assert_malformed passed: - out/third_party/testsuite/imports/imports.114.wast:1:12: imports must occur before all non-import definitions + out/third_party/testsuite/imports/imports.114.wast:1:12: error: imports must occur before all non-import definitions (memory 0) (import "" "" (memory 1 2)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 107/107 tests passed. diff --git a/test/spec/labels.txt b/test/spec/labels.txt index 691004ed..4b49e786 100644 --- a/test/spec/labels.txt +++ b/test/spec/labels.txt @@ -3,12 +3,12 @@ (;; STDOUT ;;; out/third_party/testsuite/labels.wast:303: assert_invalid passed: error: type stack size too small at f32.neg. got 0, expected at least 1 - error: @0x0000001e: OnUnaryExpr callback failed + 000001e: error: OnUnaryExpr callback failed out/third_party/testsuite/labels.wast:307: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000023: OnEndExpr callback failed + 0000023: error: OnEndExpr callback failed out/third_party/testsuite/labels.wast:311: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000023: OnEndExpr callback failed + 0000023: error: OnEndExpr callback failed 27/27 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/linking.txt b/test/spec/linking.txt index 247017b9..d8d9e831 100644 --- a/test/spec/linking.txt +++ b/test/spec/linking.txt @@ -3,34 +3,34 @@ (;; STDOUT ;;; out/third_party/testsuite/linking.wast:28: assert_unlinkable passed: error: import signature mismatch - error: @0x00000025: OnImportFunc callback failed + 0000025: error: OnImportFunc callback failed out/third_party/testsuite/linking.wast:32: assert_unlinkable passed: error: import signature mismatch - error: @0x00000026: OnImportFunc callback failed + 0000026: error: OnImportFunc callback failed out/third_party/testsuite/linking.wast:166: assert_unlinkable passed: error: elem segment offset is out of bounds: 10 >= max value 10 - error: @0x00000029: OnElemSegmentFunctionIndex callback failed + 0000029: error: OnElemSegmentFunctionIndex callback failed out/third_party/testsuite/linking.wast:175: assert_unlinkable passed: error: unknown module field "mem" - error: @0x00000027: OnImport callback failed + 0000027: error: OnImport callback failed out/third_party/testsuite/linking.wast:187: assert_unlinkable passed: error: elem segment offset is out of bounds: 12 >= max value 10 - error: @0x00000030: OnElemSegmentFunctionIndex callback failed + 0000030: error: OnElemSegmentFunctionIndex callback failed out/third_party/testsuite/linking.wast:198: assert_unlinkable passed: error: data segment is out of bounds: [65536, 65537) >= max value 65536 - error: @0x00000042: OnDataSegmentData callback failed + 0000042: error: OnDataSegmentData callback failed out/third_party/testsuite/linking.wast:258: assert_unlinkable passed: error: data segment is out of bounds: [65536, 65537) >= max value 65536 - error: @0x00000020: OnDataSegmentData callback failed + 0000020: error: OnDataSegmentData callback failed out/third_party/testsuite/linking.wast:283: assert_unlinkable passed: error: duplicate export "print" error: unknown module field "tab" - error: @0x00000037: OnImport callback failed + 0000037: error: OnImport callback failed out/third_party/testsuite/linking.wast:294: assert_unlinkable passed: error: data segment is out of bounds: [327680, 327681) >= max value 327680 - error: @0x00000028: OnDataSegmentData callback failed + 0000028: error: OnDataSegmentData callback failed out/third_party/testsuite/linking.wast:304: assert_unlinkable passed: error: elem segment offset is out of bounds: 0 >= max value 0 - error: @0x0000002e: OnElemSegmentFunctionIndex callback failed + 000002e: error: OnElemSegmentFunctionIndex callback failed 79/79 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/loop.txt b/test/spec/loop.txt index 4e80a1be..8a64d479 100644 --- a/test/spec/loop.txt +++ b/test/spec/loop.txt @@ -3,37 +3,37 @@ (;; STDOUT ;;; out/third_party/testsuite/loop.wast:254: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/loop.wast:258: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/loop.wast:262: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/loop.wast:266: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/loop.wast:271: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x0000001c: OnEndExpr callback failed + 000001c: error: OnEndExpr callback failed out/third_party/testsuite/loop.wast:277: assert_invalid passed: error: type stack size too small at loop. got 0, expected at least 1 - error: @0x0000001b: OnEndExpr callback failed + 000001b: error: OnEndExpr callback failed out/third_party/testsuite/loop.wast:283: assert_invalid passed: error: type stack size too small at loop. got 0, expected at least 1 - error: @0x0000001c: OnEndExpr callback failed + 000001c: error: OnEndExpr callback failed out/third_party/testsuite/loop.wast:289: assert_invalid passed: error: type mismatch in loop, expected i32 but got f32. - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/loop.wast:295: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000020: EndFunctionBody callback failed + 0000020: error: EndFunctionBody callback failed out/third_party/testsuite/loop.wast:303: assert_malformed passed: - out/third_party/testsuite/loop/loop.10.wast:1:16: unexpected label "$l" + out/third_party/testsuite/loop/loop.10.wast:1:16: error: unexpected label "$l" (func loop end $l) ^^ out/third_party/testsuite/loop.wast:307: assert_malformed passed: - out/third_party/testsuite/loop/loop.11.wast:1:19: mismatching label "$a" != "$l" + out/third_party/testsuite/loop/loop.11.wast:1:19: error: mismatching label "$a" != "$l" (func loop $a end $l) ^^ 53/53 tests passed. diff --git a/test/spec/memory.txt b/test/spec/memory.txt index dca63ce1..ac09f8f4 100644 --- a/test/spec/memory.txt +++ b/test/spec/memory.txt @@ -2,248 +2,248 @@ ;;; STDIN_FILE: third_party/testsuite/memory.wast (;; STDOUT ;;; out/third_party/testsuite/memory.wast:19: assert_invalid passed: - error: @0x0000000b: memory count must be 0 or 1 + 000000b: error: memory count must be 0 or 1 out/third_party/testsuite/memory.wast:20: assert_invalid passed: error: only one memory allowed - error: @0x00000023: OnMemory callback failed + 0000023: error: OnMemory callback failed out/third_party/testsuite/memory.wast:29: assert_invalid passed: - error: @0x0000000b: data section without memory section + 000000b: error: data section without memory section out/third_party/testsuite/memory.wast:30: assert_invalid passed: - error: @0x0000000b: data section without memory section + 000000b: error: data section without memory section out/third_party/testsuite/memory.wast:31: assert_invalid passed: - error: @0x0000000b: data section without memory section + 000000b: error: data section without memory section out/third_party/testsuite/memory.wast:34: assert_invalid passed: error: f32.load requires an imported or defined memory. - error: @0x0000001c: OnLoadExpr callback failed + 000001c: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:38: assert_invalid passed: error: f32.store requires an imported or defined memory. - error: @0x00000021: OnStoreExpr callback failed + 0000021: error: OnStoreExpr callback failed out/third_party/testsuite/memory.wast:42: assert_invalid passed: error: i32.load8_s requires an imported or defined memory. - error: @0x0000001c: OnLoadExpr callback failed + 000001c: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:46: assert_invalid passed: error: i32.store8 requires an imported or defined memory. - error: @0x0000001e: OnStoreExpr callback failed + 000001e: error: OnStoreExpr callback failed out/third_party/testsuite/memory.wast:50: assert_invalid passed: error: current_memory requires an imported or defined memory. - error: @0x00000019: OnCurrentMemoryExpr callback failed + 0000019: error: OnCurrentMemoryExpr callback failed out/third_party/testsuite/memory.wast:54: assert_invalid passed: error: grow_memory requires an imported or defined memory. - error: @0x0000001b: OnGrowMemoryExpr callback failed + 000001b: error: OnGrowMemoryExpr callback failed out/third_party/testsuite/memory.wast:59: assert_invalid passed: error: type mismatch in data segment, expected i32 but got i64 - error: @0x00000015: OnDataSegmentData callback failed + 0000015: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:63: assert_invalid passed: - error: @0x00000014: expected END opcode after initializer expression + 0000014: error: expected END opcode after initializer expression out/third_party/testsuite/memory.wast:67: assert_invalid passed: - error: @0x00000012: unexpected opcode in initializer expression: 1 (0x1) + 0000012: error: unexpected opcode in initializer expression: 1 (0x1) out/third_party/testsuite/memory.wast:77: assert_unlinkable passed: error: data segment is out of bounds: [0, 1) >= max value 0 - error: @0x00000017: OnDataSegmentData callback failed + 0000017: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:81: assert_unlinkable passed: error: data segment is out of bounds: [0, 1) >= max value 0 - error: @0x00000017: OnDataSegmentData callback failed + 0000017: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:85: assert_unlinkable passed: error: data segment is out of bounds: [4294967295, 4294967296) >= max value 65536 - error: @0x00000017: OnDataSegmentData callback failed + 0000017: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:89: assert_unlinkable passed: error: data segment is out of bounds: [4294966296, 4294966297) >= max value 65536 - error: @0x00000018: OnDataSegmentData callback failed + 0000018: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:93: assert_unlinkable passed: error: data segment is out of bounds: [98304, 98305) >= max value 65536 - error: @0x0000001f: OnDataSegmentData callback failed + 000001f: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:97: assert_unlinkable passed: error: data segment is out of bounds: [1, 1) >= max value 0 - error: @0x00000016: OnDataSegmentData callback failed + 0000016: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:101: assert_unlinkable passed: error: data segment is out of bounds: [73728, 73728) >= max value 65536 - error: @0x00000017: OnDataSegmentData callback failed + 0000017: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:105: assert_unlinkable passed: error: data segment is out of bounds: [4294967295, 4294967295) >= max value 65536 - error: @0x00000016: OnDataSegmentData callback failed + 0000016: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:114: assert_unlinkable passed: error: duplicate export "global" error: data segment is out of bounds: [666, 667) >= max value 0 - error: @0x0000002c: OnDataSegmentData callback failed + 000002c: error: OnDataSegmentData callback failed out/third_party/testsuite/memory.wast:131: assert_invalid passed: - error: @0x0000000e: memory initial size must be <= max size + 000000e: error: memory initial size must be <= max size out/third_party/testsuite/memory.wast:135: assert_invalid passed: - error: @0x0000000f: invalid memory initial size + 000000f: error: invalid memory initial size out/third_party/testsuite/memory.wast:139: assert_invalid passed: - error: @0x00000011: invalid memory initial size + 0000011: error: invalid memory initial size out/third_party/testsuite/memory.wast:143: assert_invalid passed: - error: @0x00000011: invalid memory initial size + 0000011: error: invalid memory initial size out/third_party/testsuite/memory.wast:147: assert_invalid passed: - error: @0x00000010: invalid memory max size + 0000010: error: invalid memory max size out/third_party/testsuite/memory.wast:151: assert_invalid passed: - error: @0x00000012: invalid memory max size + 0000012: error: invalid memory max size out/third_party/testsuite/memory.wast:155: assert_invalid passed: - error: @0x00000012: invalid memory max size + 0000012: error: invalid memory max size out/third_party/testsuite/memory.wast:166: assert_invalid passed: error: alignment must not be larger than natural alignment (8) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:170: assert_invalid passed: error: alignment must not be larger than natural alignment (8) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:174: assert_invalid passed: error: alignment must not be larger than natural alignment (4) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:178: assert_invalid passed: error: alignment must not be larger than natural alignment (2) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:182: assert_invalid passed: error: alignment must not be larger than natural alignment (1) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:186: assert_invalid passed: error: alignment must not be larger than natural alignment (1) - error: @0x00000023: OnStoreExpr callback failed + 0000023: error: OnStoreExpr callback failed out/third_party/testsuite/memory.wast:190: assert_invalid passed: error: alignment must not be larger than natural alignment (2) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:194: assert_invalid passed: error: alignment must not be larger than natural alignment (1) - error: @0x00000021: OnLoadExpr callback failed + 0000021: error: OnLoadExpr callback failed out/third_party/testsuite/memory.wast:198: assert_invalid passed: error: alignment must not be larger than natural alignment (1) - error: @0x00000023: OnStoreExpr callback failed + 0000023: error: OnStoreExpr callback failed out/third_party/testsuite/memory.wast:390: assert_malformed passed: - out/third_party/testsuite/memory/memory.63.wast:1:43: unexpected token "i32.load32" + out/third_party/testsuite/memory/memory.63.wast:1:43: error: unexpected token "i32.load32" (memory 1)(func (param i32) (result i32) (i32.load32 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.63.wast:1:54: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.63.wast:1:54: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i32) (i32.load32 (get_local 0))) ^ out/third_party/testsuite/memory.wast:397: assert_malformed passed: - out/third_party/testsuite/memory/memory.64.wast:1:43: unexpected token "i32.load32_u" + out/third_party/testsuite/memory/memory.64.wast:1:43: error: unexpected token "i32.load32_u" (memory 1)(func (param i32) (result i32) (i32.load32_u (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.64.wast:1:56: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.64.wast:1:56: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i32) (i32.load32_u (get_local 0))) ^ out/third_party/testsuite/memory.wast:404: assert_malformed passed: - out/third_party/testsuite/memory/memory.65.wast:1:43: unexpected token "i32.load32_s" + out/third_party/testsuite/memory/memory.65.wast:1:43: error: unexpected token "i32.load32_s" (memory 1)(func (param i32) (result i32) (i32.load32_s (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.65.wast:1:56: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.65.wast:1:56: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i32) (i32.load32_s (get_local 0))) ^ out/third_party/testsuite/memory.wast:411: assert_malformed passed: - out/third_party/testsuite/memory/memory.66.wast:1:43: unexpected token "i32.load64" + out/third_party/testsuite/memory/memory.66.wast:1:43: error: unexpected token "i32.load64" (memory 1)(func (param i32) (result i32) (i32.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.66.wast:1:54: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.66.wast:1:54: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i32) (i32.load64 (get_local 0))) ^ out/third_party/testsuite/memory.wast:418: assert_malformed passed: - out/third_party/testsuite/memory/memory.67.wast:1:43: unexpected token "i32.load64_u" + out/third_party/testsuite/memory/memory.67.wast:1:43: error: unexpected token "i32.load64_u" (memory 1)(func (param i32) (result i32) (i32.load64_u (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.67.wast:1:56: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.67.wast:1:56: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i32) (i32.load64_u (get_local 0))) ^ out/third_party/testsuite/memory.wast:425: assert_malformed passed: - out/third_party/testsuite/memory/memory.68.wast:1:43: unexpected token "i32.load64_s" + out/third_party/testsuite/memory/memory.68.wast:1:43: error: unexpected token "i32.load64_s" (memory 1)(func (param i32) (result i32) (i32.load64_s (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.68.wast:1:56: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.68.wast:1:56: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i32) (i32.load64_s (get_local 0))) ^ out/third_party/testsuite/memory.wast:432: assert_malformed passed: - out/third_party/testsuite/memory/memory.69.wast:1:30: unexpected token "i32.store32" + out/third_party/testsuite/memory/memory.69.wast:1:30: error: unexpected token "i32.store32" (memory 1)(func (param i32) (i32.store32 (get_local 0) (i32.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.69.wast:1:42: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.69.wast:1:42: error: syntax error, unexpected ( (memory 1)(func (param i32) (i32.store32 (get_local 0) (i32.const 0))) ^ out/third_party/testsuite/memory.wast:439: assert_malformed passed: - out/third_party/testsuite/memory/memory.70.wast:1:30: unexpected token "i32.store64" + out/third_party/testsuite/memory/memory.70.wast:1:30: error: unexpected token "i32.store64" (memory 1)(func (param i32) (i32.store64 (get_local 0) (i64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.70.wast:1:42: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.70.wast:1:42: error: syntax error, unexpected ( (memory 1)(func (param i32) (i32.store64 (get_local 0) (i64.const 0))) ^ out/third_party/testsuite/memory.wast:447: assert_malformed passed: - out/third_party/testsuite/memory/memory.71.wast:1:43: unexpected token "i64.load64" + out/third_party/testsuite/memory/memory.71.wast:1:43: error: unexpected token "i64.load64" (memory 1)(func (param i32) (result i64) (i64.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.71.wast:1:54: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.71.wast:1:54: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i64) (i64.load64 (get_local 0))) ^ out/third_party/testsuite/memory.wast:454: assert_malformed passed: - out/third_party/testsuite/memory/memory.72.wast:1:43: unexpected token "i64.load64_u" + out/third_party/testsuite/memory/memory.72.wast:1:43: error: unexpected token "i64.load64_u" (memory 1)(func (param i32) (result i64) (i64.load64_u (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.72.wast:1:56: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.72.wast:1:56: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i64) (i64.load64_u (get_local 0))) ^ out/third_party/testsuite/memory.wast:461: assert_malformed passed: - out/third_party/testsuite/memory/memory.73.wast:1:43: unexpected token "i64.load64_s" + out/third_party/testsuite/memory/memory.73.wast:1:43: error: unexpected token "i64.load64_s" (memory 1)(func (param i32) (result i64) (i64.load64_s (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.73.wast:1:56: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.73.wast:1:56: error: syntax error, unexpected ( (memory 1)(func (param i32) (result i64) (i64.load64_s (get_local 0))) ^ out/third_party/testsuite/memory.wast:468: assert_malformed passed: - out/third_party/testsuite/memory/memory.74.wast:1:30: unexpected token "i64.store64" + out/third_party/testsuite/memory/memory.74.wast:1:30: error: unexpected token "i64.store64" (memory 1)(func (param i32) (i64.store64 (get_local 0) (i64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.74.wast:1:42: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.74.wast:1:42: error: syntax error, unexpected ( (memory 1)(func (param i32) (i64.store64 (get_local 0) (i64.const 0))) ^ out/third_party/testsuite/memory.wast:476: assert_malformed passed: - out/third_party/testsuite/memory/memory.75.wast:1:43: unexpected token "f32.load32" + out/third_party/testsuite/memory/memory.75.wast:1:43: error: unexpected token "f32.load32" (memory 1)(func (param i32) (result f32) (f32.load32 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.75.wast:1:54: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.75.wast:1:54: error: syntax error, unexpected ( (memory 1)(func (param i32) (result f32) (f32.load32 (get_local 0))) ^ out/third_party/testsuite/memory.wast:483: assert_malformed passed: - out/third_party/testsuite/memory/memory.76.wast:1:43: unexpected token "f32.load64" + out/third_party/testsuite/memory/memory.76.wast:1:43: error: unexpected token "f32.load64" (memory 1)(func (param i32) (result f32) (f32.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.76.wast:1:54: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.76.wast:1:54: error: syntax error, unexpected ( (memory 1)(func (param i32) (result f32) (f32.load64 (get_local 0))) ^ out/third_party/testsuite/memory.wast:490: assert_malformed passed: - out/third_party/testsuite/memory/memory.77.wast:1:30: unexpected token "f32.store32" + out/third_party/testsuite/memory/memory.77.wast:1:30: error: unexpected token "f32.store32" (memory 1)(func (param i32) (f32.store32 (get_local 0) (f32.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.77.wast:1:42: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.77.wast:1:42: error: syntax error, unexpected ( (memory 1)(func (param i32) (f32.store32 (get_local 0) (f32.const 0))) ^ out/third_party/testsuite/memory.wast:497: assert_malformed passed: - out/third_party/testsuite/memory/memory.78.wast:1:30: unexpected token "f32.store64" + out/third_party/testsuite/memory/memory.78.wast:1:30: error: unexpected token "f32.store64" (memory 1)(func (param i32) (f32.store64 (get_local 0) (f64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.78.wast:1:42: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.78.wast:1:42: error: syntax error, unexpected ( (memory 1)(func (param i32) (f32.store64 (get_local 0) (f64.const 0))) ^ out/third_party/testsuite/memory.wast:505: assert_malformed passed: - out/third_party/testsuite/memory/memory.79.wast:1:43: unexpected token "f64.load32" + out/third_party/testsuite/memory/memory.79.wast:1:43: error: unexpected token "f64.load32" (memory 1)(func (param i32) (result f64) (f64.load32 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.79.wast:1:54: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.79.wast:1:54: error: syntax error, unexpected ( (memory 1)(func (param i32) (result f64) (f64.load32 (get_local 0))) ^ out/third_party/testsuite/memory.wast:512: assert_malformed passed: - out/third_party/testsuite/memory/memory.80.wast:1:43: unexpected token "f64.load64" + out/third_party/testsuite/memory/memory.80.wast:1:43: error: unexpected token "f64.load64" (memory 1)(func (param i32) (result f64) (f64.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.80.wast:1:54: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.80.wast:1:54: error: syntax error, unexpected ( (memory 1)(func (param i32) (result f64) (f64.load64 (get_local 0))) ^ out/third_party/testsuite/memory.wast:519: assert_malformed passed: - out/third_party/testsuite/memory/memory.81.wast:1:30: unexpected token "f64.store32" + out/third_party/testsuite/memory/memory.81.wast:1:30: error: unexpected token "f64.store32" (memory 1)(func (param i32) (f64.store32 (get_local 0) (f32.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.81.wast:1:42: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.81.wast:1:42: error: syntax error, unexpected ( (memory 1)(func (param i32) (f64.store32 (get_local 0) (f32.const 0))) ^ out/third_party/testsuite/memory.wast:526: assert_malformed passed: - out/third_party/testsuite/memory/memory.82.wast:1:30: unexpected token "f64.store64" + out/third_party/testsuite/memory/memory.82.wast:1:30: error: unexpected token "f64.store64" (memory 1)(func (param i32) (f64.store64 (get_local 0) (f64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.82.wast:1:42: syntax error, unexpected ( + out/third_party/testsuite/memory/memory.82.wast:1:42: error: syntax error, unexpected ( (memory 1)(func (param i32) (f64.store64 (get_local 0) (f64.const 0))) ^ 106/106 tests passed. diff --git a/test/spec/nop.txt b/test/spec/nop.txt index 09058c56..0f5dfdc0 100644 --- a/test/spec/nop.txt +++ b/test/spec/nop.txt @@ -3,15 +3,15 @@ (;; STDOUT ;;; out/third_party/testsuite/nop.wast:250: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed out/third_party/testsuite/nop.wast:254: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed out/third_party/testsuite/nop.wast:258: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed out/third_party/testsuite/nop.wast:262: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed 54/54 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/return.txt b/test/spec/return.txt index 5b4c48df..2bf9399a 100644 --- a/test/spec/return.txt +++ b/test/spec/return.txt @@ -3,12 +3,12 @@ (;; STDOUT ;;; out/third_party/testsuite/return.wast:276: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x00000019: OnReturnExpr callback failed + 0000019: error: OnReturnExpr callback failed out/third_party/testsuite/return.wast:280: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x0000001a: OnReturnExpr callback failed + 000001a: error: OnReturnExpr callback failed out/third_party/testsuite/return.wast:284: assert_invalid passed: error: type mismatch in return, expected f64 but got i64. - error: @0x0000001b: OnReturnExpr callback failed + 000001b: error: OnReturnExpr callback failed 60/60 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/select.txt b/test/spec/select.txt index 83193b64..0960bd2c 100644 --- a/test/spec/select.txt +++ b/test/spec/select.txt @@ -3,6 +3,6 @@ (;; STDOUT ;;; out/third_party/testsuite/select.wast:65: assert_invalid passed: error: type stack size too small at select. got 0, expected at least 2 - error: @0x0000001c: OnSelectExpr callback failed + 000001c: error: OnSelectExpr callback failed 29/29 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/set_local.txt b/test/spec/set_local.txt index 53b8110d..e386b8d0 100644 --- a/test/spec/set_local.txt +++ b/test/spec/set_local.txt @@ -3,72 +3,72 @@ (;; STDOUT ;;; out/third_party/testsuite/set_local.wast:95: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001f: EndFunctionBody callback failed + 000001f: error: EndFunctionBody callback failed out/third_party/testsuite/set_local.wast:101: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x00000021: OnConvertExpr callback failed + 0000021: error: OnConvertExpr callback failed out/third_party/testsuite/set_local.wast:107: assert_invalid passed: error: type stack size too small at f64.neg. got 0, expected at least 1 - error: @0x00000020: OnUnaryExpr callback failed + 0000020: error: OnUnaryExpr callback failed out/third_party/testsuite/set_local.wast:114: assert_invalid passed: error: type stack size too small at set_local. got 0, expected at least 1 - error: @0x0000001c: OnSetLocalExpr callback failed + 000001c: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:118: assert_invalid passed: error: type mismatch in set_local, expected i32 but got f32. - error: @0x00000020: OnSetLocalExpr callback failed + 0000020: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:122: assert_invalid passed: error: type mismatch in set_local, expected f32 but got f64. - error: @0x00000024: OnSetLocalExpr callback failed + 0000024: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:126: assert_invalid passed: error: type mismatch in set_local, expected i64 but got f64. - error: @0x00000026: OnSetLocalExpr callback failed + 0000026: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:134: assert_invalid passed: error: type mismatch in implicit return, expected i64 but got i32. - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/set_local.wast:138: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001b: OnConvertExpr callback failed + 000001b: error: OnConvertExpr callback failed out/third_party/testsuite/set_local.wast:142: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x0000001c: OnUnaryExpr callback failed + 000001c: error: OnUnaryExpr callback failed out/third_party/testsuite/set_local.wast:147: assert_invalid passed: error: type stack size too small at set_local. got 0, expected at least 1 - error: @0x0000001b: OnSetLocalExpr callback failed + 000001b: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:151: assert_invalid passed: error: type mismatch in set_local, expected i32 but got f32. - error: @0x0000001f: OnSetLocalExpr callback failed + 000001f: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:155: assert_invalid passed: error: type mismatch in set_local, expected f32 but got f64. - error: @0x00000023: OnSetLocalExpr callback failed + 0000023: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:159: assert_invalid passed: error: type mismatch in set_local, expected i64 but got f64. - error: @0x00000024: OnSetLocalExpr callback failed + 0000024: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:167: assert_invalid passed: error: invalid local_index: 3 (max 2) - error: @0x0000001d: OnGetLocalExpr callback failed + 000001d: error: OnGetLocalExpr callback failed out/third_party/testsuite/set_local.wast:171: assert_invalid passed: error: invalid local_index: 14324343 (max 2) - error: @0x00000020: OnGetLocalExpr callback failed + 0000020: error: OnGetLocalExpr callback failed out/third_party/testsuite/set_local.wast:176: assert_invalid passed: error: invalid local_index: 2 (max 2) - error: @0x0000001b: OnGetLocalExpr callback failed + 000001b: error: OnGetLocalExpr callback failed out/third_party/testsuite/set_local.wast:180: assert_invalid passed: error: invalid local_index: 714324343 (max 2) - error: @0x00000021: OnGetLocalExpr callback failed + 0000021: error: OnGetLocalExpr callback failed out/third_party/testsuite/set_local.wast:185: assert_invalid passed: error: invalid local_index: 3 (max 3) - error: @0x0000001e: OnGetLocalExpr callback failed + 000001e: error: OnGetLocalExpr callback failed out/third_party/testsuite/set_local.wast:189: assert_invalid passed: error: invalid local_index: 214324343 (max 3) - error: @0x00000021: OnGetLocalExpr callback failed + 0000021: error: OnGetLocalExpr callback failed out/third_party/testsuite/set_local.wast:194: assert_invalid passed: error: type mismatch in set_local, expected i32 but got f32. - error: @0x00000021: OnSetLocalExpr callback failed + 0000021: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:198: assert_invalid passed: error: type mismatch in set_local, expected i32 but got f32. - error: @0x00000022: OnSetLocalExpr callback failed + 0000022: error: OnSetLocalExpr callback failed out/third_party/testsuite/set_local.wast:202: assert_invalid passed: error: type mismatch in set_local, expected f64 but got i64. - error: @0x00000020: OnSetLocalExpr callback failed + 0000020: error: OnSetLocalExpr callback failed 33/33 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/start.txt b/test/spec/start.txt index 01886f3c..10a4b69d 100644 --- a/test/spec/start.txt +++ b/test/spec/start.txt @@ -2,13 +2,13 @@ ;;; STDIN_FILE: third_party/testsuite/start.wast (;; STDOUT ;;; out/third_party/testsuite/start.wast:2: assert_invalid passed: - error: @0x00000015: invalid start function index: 1 + 0000015: error: invalid start function index: 1 out/third_party/testsuite/start.wast:7: assert_invalid passed: error: start function must not return anything - error: @0x00000016: OnStartFunction callback failed + 0000016: error: OnStartFunction callback failed out/third_party/testsuite/start.wast:14: assert_invalid passed: error: start function must be nullary - error: @0x00000016: OnStartFunction callback failed + 0000016: error: OnStartFunction callback failed inc() => inc() => inc() => diff --git a/test/spec/store_retval.txt b/test/spec/store_retval.txt index fd21b166..62a0160c 100644 --- a/test/spec/store_retval.txt +++ b/test/spec/store_retval.txt @@ -3,42 +3,42 @@ (;; STDOUT ;;; out/third_party/testsuite/store_retval.wast:2: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:6: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:10: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000021: EndFunctionBody callback failed + 0000021: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:14: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000025: EndFunctionBody callback failed + 0000025: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:19: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:23: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:27: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000029: EndFunctionBody callback failed + 0000029: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:31: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000002d: EndFunctionBody callback failed + 000002d: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:36: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:40: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:44: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:48: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed out/third_party/testsuite/store_retval.wast:52: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000026: EndFunctionBody callback failed + 0000026: error: EndFunctionBody callback failed 13/13 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/switch.txt b/test/spec/switch.txt index 71b5a19d..5441c7bc 100644 --- a/test/spec/switch.txt +++ b/test/spec/switch.txt @@ -3,6 +3,6 @@ (;; STDOUT ;;; out/third_party/testsuite/switch.wast:150: assert_invalid passed: error: invalid depth: 3 (max 0) - error: @0x0000001c: OnBrTableExpr callback failed + 000001c: error: OnBrTableExpr callback failed 27/27 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/tee_local.txt b/test/spec/tee_local.txt index 313a6af1..6824f28b 100644 --- a/test/spec/tee_local.txt +++ b/test/spec/tee_local.txt @@ -3,72 +3,72 @@ (;; STDOUT ;;; out/third_party/testsuite/tee_local.wast:132: assert_invalid passed: error: type mismatch in implicit return, expected i64 but got i32. - error: @0x0000001f: EndFunctionBody callback failed + 000001f: error: EndFunctionBody callback failed out/third_party/testsuite/tee_local.wast:136: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x00000021: OnConvertExpr callback failed + 0000021: error: OnConvertExpr callback failed out/third_party/testsuite/tee_local.wast:140: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x00000020: OnUnaryExpr callback failed + 0000020: error: OnUnaryExpr callback failed out/third_party/testsuite/tee_local.wast:145: assert_invalid passed: error: type stack size too small at tee_local. got 0, expected at least 1 - error: @0x0000001c: OnTeeLocalExpr callback failed + 000001c: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:149: assert_invalid passed: error: type mismatch in tee_local, expected i32 but got f32. - error: @0x00000020: OnTeeLocalExpr callback failed + 0000020: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:153: assert_invalid passed: error: type mismatch in tee_local, expected f32 but got f64. - error: @0x00000024: OnTeeLocalExpr callback failed + 0000024: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:157: assert_invalid passed: error: type mismatch in tee_local, expected i64 but got f64. - error: @0x00000026: OnTeeLocalExpr callback failed + 0000026: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:165: assert_invalid passed: error: type mismatch in implicit return, expected i64 but got i32. - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/tee_local.wast:169: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001b: OnConvertExpr callback failed + 000001b: error: OnConvertExpr callback failed out/third_party/testsuite/tee_local.wast:173: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x0000001c: OnUnaryExpr callback failed + 000001c: error: OnUnaryExpr callback failed out/third_party/testsuite/tee_local.wast:178: assert_invalid passed: error: type stack size too small at tee_local. got 0, expected at least 1 - error: @0x0000001b: OnTeeLocalExpr callback failed + 000001b: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:182: assert_invalid passed: error: type mismatch in tee_local, expected i32 but got f32. - error: @0x0000001f: OnTeeLocalExpr callback failed + 000001f: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:186: assert_invalid passed: error: type mismatch in tee_local, expected f32 but got f64. - error: @0x00000023: OnTeeLocalExpr callback failed + 0000023: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:190: assert_invalid passed: error: type mismatch in tee_local, expected i64 but got f64. - error: @0x00000024: OnTeeLocalExpr callback failed + 0000024: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:198: assert_invalid passed: error: invalid local_index: 3 (max 2) - error: @0x0000001d: OnGetLocalExpr callback failed + 000001d: error: OnGetLocalExpr callback failed out/third_party/testsuite/tee_local.wast:202: assert_invalid passed: error: invalid local_index: 14324343 (max 2) - error: @0x00000020: OnGetLocalExpr callback failed + 0000020: error: OnGetLocalExpr callback failed out/third_party/testsuite/tee_local.wast:207: assert_invalid passed: error: invalid local_index: 2 (max 2) - error: @0x0000001b: OnGetLocalExpr callback failed + 000001b: error: OnGetLocalExpr callback failed out/third_party/testsuite/tee_local.wast:211: assert_invalid passed: error: invalid local_index: 714324343 (max 2) - error: @0x00000021: OnGetLocalExpr callback failed + 0000021: error: OnGetLocalExpr callback failed out/third_party/testsuite/tee_local.wast:216: assert_invalid passed: error: invalid local_index: 3 (max 3) - error: @0x0000001e: OnGetLocalExpr callback failed + 000001e: error: OnGetLocalExpr callback failed out/third_party/testsuite/tee_local.wast:220: assert_invalid passed: error: invalid local_index: 214324343 (max 3) - error: @0x00000021: OnGetLocalExpr callback failed + 0000021: error: OnGetLocalExpr callback failed out/third_party/testsuite/tee_local.wast:225: assert_invalid passed: error: type mismatch in tee_local, expected i32 but got f32. - error: @0x00000021: OnTeeLocalExpr callback failed + 0000021: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:229: assert_invalid passed: error: type mismatch in tee_local, expected i32 but got f32. - error: @0x00000022: OnTeeLocalExpr callback failed + 0000022: error: OnTeeLocalExpr callback failed out/third_party/testsuite/tee_local.wast:233: assert_invalid passed: error: type mismatch in tee_local, expected f64 but got i64. - error: @0x00000020: OnTeeLocalExpr callback failed + 0000020: error: OnTeeLocalExpr callback failed 34/34 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/token.txt b/test/spec/token.txt index 220b86f9..bab6656e 100644 --- a/test/spec/token.txt +++ b/test/spec/token.txt @@ -2,17 +2,17 @@ ;;; STDIN_FILE: third_party/testsuite/token.wast (;; STDOUT ;;; out/third_party/testsuite/token.wast:4: assert_malformed passed: - out/third_party/testsuite/token/token.0.wast:1:14: unexpected token "i32.const0" + out/third_party/testsuite/token/token.0.wast:1:14: error: unexpected token "i32.const0" (func (drop (i32.const0))) ^^^^^^^^^^ - out/third_party/testsuite/token/token.0.wast:1:24: syntax error, unexpected ) + out/third_party/testsuite/token/token.0.wast:1:24: error: syntax error, unexpected ) (func (drop (i32.const0))) ^ out/third_party/testsuite/token.wast:8: assert_malformed passed: - out/third_party/testsuite/token/token.1.wast:1:10: unexpected token "0drop" + out/third_party/testsuite/token/token.1.wast:1:10: error: unexpected token "0drop" (func br 0drop) ^^^^^ - out/third_party/testsuite/token/token.1.wast:1:15: syntax error, unexpected ), expecting NAT or VAR + out/third_party/testsuite/token/token.1.wast:1:15: error: syntax error, unexpected ), expecting NAT or VAR (func br 0drop) ^ 2/2 tests passed. diff --git a/test/spec/type.txt b/test/spec/type.txt index 1fc10a57..e7e8a8ff 100644 --- a/test/spec/type.txt +++ b/test/spec/type.txt @@ -3,16 +3,16 @@ ;;; NOTE: Two tests don't pass because they use quoted modules with assert_invalid, which isn't currently supported by wabt. (;; STDOUT ;;; out/third_party/testsuite/type.wast:44: assert_malformed passed: - out/third_party/testsuite/type/type.1.wast:1:27: syntax error, unexpected PARAM, expecting RESULT + out/third_party/testsuite/type/type.1.wast:1:27: error: syntax error, unexpected PARAM, expecting RESULT (type (func (result i32) (param i32))) ^^^^^ out/third_party/testsuite/type.wast:48: assert_malformed passed: - out/third_party/testsuite/type/type.2.wast:1:21: syntax error, unexpected VAR, expecting ) or VALUE_TYPE + out/third_party/testsuite/type/type.2.wast:1:21: error: syntax error, unexpected VAR, expecting ) or VALUE_TYPE (type (func (result $x i32))) ^^ out/third_party/testsuite/type.wast:53: assert_invalid passed: - error: @0x0000000e: result count must be 0 or 1 + 000000e: error: result count must be 0 or 1 out/third_party/testsuite/type.wast:57: assert_invalid passed: - error: @0x0000000e: result count must be 0 or 1 + 000000e: error: result count must be 0 or 1 4/4 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/typecheck.txt b/test/spec/typecheck.txt index 77fb08f4..f02f7ca2 100644 --- a/test/spec/typecheck.txt +++ b/test/spec/typecheck.txt @@ -3,659 +3,659 @@ (;; STDOUT ;;; out/third_party/testsuite/typecheck.wast:4: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x00000018: OnConvertExpr callback failed + 0000018: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:10: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001c: OnConvertExpr callback failed + 000001c: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:17: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001c: OnConvertExpr callback failed + 000001c: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:24: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001e: OnConvertExpr callback failed + 000001e: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:31: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x00000021: OnConvertExpr callback failed + 0000021: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:39: assert_invalid passed: error: type stack size too small at i32.add. got 0, expected at least 2 - error: @0x00000018: OnBinaryExpr callback failed + 0000018: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:45: assert_invalid passed: error: type stack size too small at i32.add. got 1, expected at least 2 - error: @0x0000001a: OnBinaryExpr callback failed + 000001a: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:51: assert_invalid passed: error: type stack size too small at i32.add. got 0, expected at least 2 - error: @0x0000001e: OnBinaryExpr callback failed + 000001e: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:58: assert_invalid passed: error: type stack size too small at i32.add. got 1, expected at least 2 - error: @0x0000001e: OnBinaryExpr callback failed + 000001e: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:65: assert_invalid passed: error: type stack size too small at i32.add. got 0, expected at least 2 - error: @0x0000001e: OnBinaryExpr callback failed + 000001e: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:72: assert_invalid passed: error: type stack size too small at i32.add. got 1, expected at least 2 - error: @0x0000001e: OnBinaryExpr callback failed + 000001e: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:79: assert_invalid passed: error: type stack size too small at drop. got 0, expected at least 1 - error: @0x00000021: OnDropExpr callback failed + 0000021: error: OnDropExpr callback failed out/third_party/testsuite/typecheck.wast:86: assert_invalid passed: error: type stack size too small at i32.add. got 0, expected at least 2 - error: @0x00000020: OnBinaryExpr callback failed + 0000020: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:93: assert_invalid passed: error: type stack size too small at i32.add. got 0, expected at least 2 - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:101: assert_invalid passed: error: type stack size too small at i32.add. got 0, expected at least 2 - error: @0x00000021: OnBinaryExpr callback failed + 0000021: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:110: assert_invalid passed: error: type stack size too small at if. got 0, expected at least 1 - error: @0x00000019: OnIfExpr callback failed + 0000019: error: OnIfExpr callback failed out/third_party/testsuite/typecheck.wast:116: assert_invalid passed: error: type stack size too small at if. got 0, expected at least 1 - error: @0x0000001d: OnIfExpr callback failed + 000001d: error: OnIfExpr callback failed out/third_party/testsuite/typecheck.wast:123: assert_invalid passed: error: type stack size too small at if. got 0, expected at least 1 - error: @0x0000001d: OnIfExpr callback failed + 000001d: error: OnIfExpr callback failed out/third_party/testsuite/typecheck.wast:130: assert_invalid passed: error: type stack size too small at if. got 0, expected at least 1 - error: @0x0000001f: OnIfExpr callback failed + 000001f: error: OnIfExpr callback failed out/third_party/testsuite/typecheck.wast:137: assert_invalid passed: error: type stack size too small at if. got 0, expected at least 1 - error: @0x00000022: OnIfExpr callback failed + 0000022: error: OnIfExpr callback failed out/third_party/testsuite/typecheck.wast:146: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001b: OnBrExpr callback failed + 000001b: error: OnBrExpr callback failed out/third_party/testsuite/typecheck.wast:153: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x0000001d: OnBrExpr callback failed + 000001d: error: OnBrExpr callback failed out/third_party/testsuite/typecheck.wast:161: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x00000021: OnBrExpr callback failed + 0000021: error: OnBrExpr callback failed out/third_party/testsuite/typecheck.wast:171: assert_invalid passed: error: type stack size too small at br. got 0, expected at least 1 - error: @0x00000024: OnBrExpr callback failed + 0000024: error: OnBrExpr callback failed out/third_party/testsuite/typecheck.wast:182: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x00000019: OnReturnExpr callback failed + 0000019: error: OnReturnExpr callback failed out/third_party/testsuite/typecheck.wast:188: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x0000001d: OnReturnExpr callback failed + 000001d: error: OnReturnExpr callback failed out/third_party/testsuite/typecheck.wast:195: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x0000001d: OnReturnExpr callback failed + 000001d: error: OnReturnExpr callback failed out/third_party/testsuite/typecheck.wast:202: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x0000001f: OnReturnExpr callback failed + 000001f: error: OnReturnExpr callback failed out/third_party/testsuite/typecheck.wast:209: assert_invalid passed: error: type stack size too small at return. got 0, expected at least 1 - error: @0x00000022: OnReturnExpr callback failed + 0000022: error: OnReturnExpr callback failed out/third_party/testsuite/typecheck.wast:219: assert_invalid passed: error: type mismatch in if, expected i32 but got f32. - error: @0x0000001e: OnIfExpr callback failed + 000001e: error: OnIfExpr callback failed out/third_party/testsuite/typecheck.wast:222: assert_invalid passed: error: type mismatch in br_if, expected i32 but got f32. - error: @0x00000020: OnBrIfExpr callback failed + 0000020: error: OnBrIfExpr callback failed out/third_party/testsuite/typecheck.wast:226: assert_invalid passed: error: type mismatch in br_table, expected i32 but got f32. - error: @0x00000021: OnBrTableExpr callback failed + 0000021: error: OnBrTableExpr callback failed out/third_party/testsuite/typecheck.wast:230: assert_invalid passed: error: type mismatch in call, expected i32 but got f32. - error: @0x00000026: OnCallExpr callback failed + 0000026: error: OnCallExpr callback failed out/third_party/testsuite/typecheck.wast:232: assert_invalid passed: error: type mismatch in call_indirect, expected i32 but got f32. - error: @0x0000002f: OnCallIndirectExpr callback failed + 000002f: error: OnCallIndirectExpr callback failed out/third_party/testsuite/typecheck.wast:242: assert_invalid passed: error: type mismatch in call_indirect, expected i32 but got f32. - error: @0x00000029: OnCallIndirectExpr callback failed + 0000029: error: OnCallIndirectExpr callback failed out/third_party/testsuite/typecheck.wast:250: assert_invalid passed: error: type mismatch in return, expected i32 but got f32. - error: @0x0000001e: OnReturnExpr callback failed + 000001e: error: OnReturnExpr callback failed out/third_party/testsuite/typecheck.wast:253: assert_invalid passed: error: type mismatch in set_local, expected i32 but got f32. - error: @0x00000020: OnSetLocalExpr callback failed + 0000020: error: OnSetLocalExpr callback failed out/third_party/testsuite/typecheck.wast:256: assert_invalid passed: error: type mismatch in i32.load, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:257: assert_invalid passed: error: type mismatch in i32.load8_s, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:258: assert_invalid passed: error: type mismatch in i32.load8_u, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:259: assert_invalid passed: error: type mismatch in i32.load16_s, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:260: assert_invalid passed: error: type mismatch in i32.load16_u, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:261: assert_invalid passed: error: type mismatch in i64.load, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:262: assert_invalid passed: error: type mismatch in i64.load8_s, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:263: assert_invalid passed: error: type mismatch in i64.load8_u, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:264: assert_invalid passed: error: type mismatch in i64.load16_s, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:265: assert_invalid passed: error: type mismatch in i64.load16_u, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:266: assert_invalid passed: error: type mismatch in i64.load32_s, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:267: assert_invalid passed: error: type mismatch in i64.load32_u, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:268: assert_invalid passed: error: type mismatch in f32.load, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:269: assert_invalid passed: error: type mismatch in f64.load, expected i32 but got f32. - error: @0x00000024: OnLoadExpr callback failed + 0000024: error: OnLoadExpr callback failed out/third_party/testsuite/typecheck.wast:272: assert_invalid passed: error: type mismatch in i32.store, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:273: assert_invalid passed: error: type mismatch in i32.store8, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:274: assert_invalid passed: error: type mismatch in i32.store16, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:275: assert_invalid passed: error: type mismatch in i64.store, expected i32 but got f32. error: type mismatch in i64.store, expected i64 but got i32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:276: assert_invalid passed: error: type mismatch in i64.store8, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:277: assert_invalid passed: error: type mismatch in i64.store16, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:278: assert_invalid passed: error: type mismatch in i64.store32, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:279: assert_invalid passed: error: type mismatch in f32.store, expected i32 but got f32. - error: @0x00000029: OnStoreExpr callback failed + 0000029: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:280: assert_invalid passed: error: type mismatch in f64.store, expected i32 but got f32. - error: @0x0000002d: OnStoreExpr callback failed + 000002d: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:283: assert_invalid passed: error: type mismatch in i32.store, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:284: assert_invalid passed: error: type mismatch in i32.store8, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:285: assert_invalid passed: error: type mismatch in i32.store16, expected i32 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:286: assert_invalid passed: error: type mismatch in i64.store, expected i64 but got f32. - error: @0x00000026: OnStoreExpr callback failed + 0000026: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:287: assert_invalid passed: error: type mismatch in i64.store8, expected i64 but got f64. - error: @0x0000002a: OnStoreExpr callback failed + 000002a: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:288: assert_invalid passed: error: type mismatch in i64.store16, expected i64 but got f64. - error: @0x0000002a: OnStoreExpr callback failed + 000002a: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:289: assert_invalid passed: error: type mismatch in i64.store32, expected i64 but got f64. - error: @0x0000002a: OnStoreExpr callback failed + 000002a: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:290: assert_invalid passed: error: type mismatch in f32.store, expected f32 but got i32. - error: @0x00000023: OnStoreExpr callback failed + 0000023: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:291: assert_invalid passed: error: type mismatch in f64.store, expected f64 but got i64. - error: @0x00000023: OnStoreExpr callback failed + 0000023: error: OnStoreExpr callback failed out/third_party/testsuite/typecheck.wast:294: assert_invalid passed: error: type mismatch in i32.add, expected i32 but got i64. error: type mismatch in i32.add, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:295: assert_invalid passed: error: type mismatch in i32.and, expected i32 but got i64. error: type mismatch in i32.and, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:296: assert_invalid passed: error: type mismatch in i32.div_s, expected i32 but got i64. error: type mismatch in i32.div_s, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:297: assert_invalid passed: error: type mismatch in i32.div_u, expected i32 but got i64. error: type mismatch in i32.div_u, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:298: assert_invalid passed: error: type mismatch in i32.mul, expected i32 but got i64. error: type mismatch in i32.mul, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:299: assert_invalid passed: error: type mismatch in i32.or, expected i32 but got i64. error: type mismatch in i32.or, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:300: assert_invalid passed: error: type mismatch in i32.rem_s, expected i32 but got i64. error: type mismatch in i32.rem_s, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:301: assert_invalid passed: error: type mismatch in i32.rem_u, expected i32 but got i64. error: type mismatch in i32.rem_u, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:302: assert_invalid passed: error: type mismatch in i32.rotl, expected i32 but got i64. error: type mismatch in i32.rotl, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:303: assert_invalid passed: error: type mismatch in i32.rotr, expected i32 but got i64. error: type mismatch in i32.rotr, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:304: assert_invalid passed: error: type mismatch in i32.shl, expected i32 but got i64. error: type mismatch in i32.shl, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:305: assert_invalid passed: error: type mismatch in i32.shr_s, expected i32 but got i64. error: type mismatch in i32.shr_s, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:306: assert_invalid passed: error: type mismatch in i32.shr_u, expected i32 but got i64. error: type mismatch in i32.shr_u, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:307: assert_invalid passed: error: type mismatch in i32.sub, expected i32 but got i64. error: type mismatch in i32.sub, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:308: assert_invalid passed: error: type mismatch in i32.xor, expected i32 but got i64. error: type mismatch in i32.xor, expected i32 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:309: assert_invalid passed: error: type mismatch in i64.add, expected i64 but got i32. error: type mismatch in i64.add, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:310: assert_invalid passed: error: type mismatch in i64.and, expected i64 but got i32. error: type mismatch in i64.and, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:311: assert_invalid passed: error: type mismatch in i64.div_s, expected i64 but got i32. error: type mismatch in i64.div_s, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:312: assert_invalid passed: error: type mismatch in i64.div_u, expected i64 but got i32. error: type mismatch in i64.div_u, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:313: assert_invalid passed: error: type mismatch in i64.mul, expected i64 but got i32. error: type mismatch in i64.mul, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:314: assert_invalid passed: error: type mismatch in i64.or, expected i64 but got i32. error: type mismatch in i64.or, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:315: assert_invalid passed: error: type mismatch in i64.rem_s, expected i64 but got i32. error: type mismatch in i64.rem_s, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:316: assert_invalid passed: error: type mismatch in i64.rem_u, expected i64 but got i32. error: type mismatch in i64.rem_u, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:317: assert_invalid passed: error: type mismatch in i64.rotl, expected i64 but got i32. error: type mismatch in i64.rotl, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:318: assert_invalid passed: error: type mismatch in i64.rotr, expected i64 but got i32. error: type mismatch in i64.rotr, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:319: assert_invalid passed: error: type mismatch in i64.shl, expected i64 but got i32. error: type mismatch in i64.shl, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:320: assert_invalid passed: error: type mismatch in i64.shr_s, expected i64 but got i32. error: type mismatch in i64.shr_s, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:321: assert_invalid passed: error: type mismatch in i64.shr_u, expected i64 but got i32. error: type mismatch in i64.shr_u, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:322: assert_invalid passed: error: type mismatch in i64.sub, expected i64 but got i32. error: type mismatch in i64.sub, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:323: assert_invalid passed: error: type mismatch in i64.xor, expected i64 but got i32. error: type mismatch in i64.xor, expected i64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:324: assert_invalid passed: error: type mismatch in f32.add, expected f32 but got i64. error: type mismatch in f32.add, expected f32 but got f64. - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:325: assert_invalid passed: error: type mismatch in f32.copysign, expected f32 but got i64. error: type mismatch in f32.copysign, expected f32 but got f64. - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:326: assert_invalid passed: error: type mismatch in f32.div, expected f32 but got i64. error: type mismatch in f32.div, expected f32 but got f64. - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:327: assert_invalid passed: error: type mismatch in f32.max, expected f32 but got i64. error: type mismatch in f32.max, expected f32 but got f64. - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:328: assert_invalid passed: error: type mismatch in f32.min, expected f32 but got i64. error: type mismatch in f32.min, expected f32 but got f64. - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:329: assert_invalid passed: error: type mismatch in f32.mul, expected f32 but got i64. error: type mismatch in f32.mul, expected f32 but got f64. - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:330: assert_invalid passed: error: type mismatch in f32.sub, expected f32 but got i64. error: type mismatch in f32.sub, expected f32 but got f64. - error: @0x00000023: OnBinaryExpr callback failed + 0000023: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:331: assert_invalid passed: error: type mismatch in f64.add, expected f64 but got i64. error: type mismatch in f64.add, expected f64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:332: assert_invalid passed: error: type mismatch in f64.copysign, expected f64 but got i64. error: type mismatch in f64.copysign, expected f64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:333: assert_invalid passed: error: type mismatch in f64.div, expected f64 but got i64. error: type mismatch in f64.div, expected f64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:334: assert_invalid passed: error: type mismatch in f64.max, expected f64 but got i64. error: type mismatch in f64.max, expected f64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:335: assert_invalid passed: error: type mismatch in f64.min, expected f64 but got i64. error: type mismatch in f64.min, expected f64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:336: assert_invalid passed: error: type mismatch in f64.mul, expected f64 but got i64. error: type mismatch in f64.mul, expected f64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:337: assert_invalid passed: error: type mismatch in f64.sub, expected f64 but got i64. error: type mismatch in f64.sub, expected f64 but got f32. - error: @0x0000001f: OnBinaryExpr callback failed + 000001f: error: OnBinaryExpr callback failed out/third_party/testsuite/typecheck.wast:340: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:341: assert_invalid passed: error: type mismatch in i32.clz, expected i32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:342: assert_invalid passed: error: type mismatch in i32.ctz, expected i32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:343: assert_invalid passed: error: type mismatch in i32.popcnt, expected i32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:344: assert_invalid passed: error: type mismatch in i64.eqz, expected i64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:345: assert_invalid passed: error: type mismatch in i64.clz, expected i64 but got i32. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:346: assert_invalid passed: error: type mismatch in i64.ctz, expected i64 but got i32. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:347: assert_invalid passed: error: type mismatch in i64.popcnt, expected i64 but got i32. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:348: assert_invalid passed: error: type mismatch in f32.abs, expected f32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:349: assert_invalid passed: error: type mismatch in f32.ceil, expected f32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:350: assert_invalid passed: error: type mismatch in f32.floor, expected f32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:351: assert_invalid passed: error: type mismatch in f32.nearest, expected f32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:352: assert_invalid passed: error: type mismatch in f32.neg, expected f32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:353: assert_invalid passed: error: type mismatch in f32.sqrt, expected f32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:354: assert_invalid passed: error: type mismatch in f32.trunc, expected f32 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:355: assert_invalid passed: error: type mismatch in f64.abs, expected f64 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:356: assert_invalid passed: error: type mismatch in f64.ceil, expected f64 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:357: assert_invalid passed: error: type mismatch in f64.floor, expected f64 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:358: assert_invalid passed: error: type mismatch in f64.nearest, expected f64 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:359: assert_invalid passed: error: type mismatch in f64.neg, expected f64 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:360: assert_invalid passed: error: type mismatch in f64.sqrt, expected f64 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:361: assert_invalid passed: error: type mismatch in f64.trunc, expected f64 but got i64. - error: @0x0000001a: OnUnaryExpr callback failed + 000001a: error: OnUnaryExpr callback failed out/third_party/testsuite/typecheck.wast:364: assert_invalid passed: error: type mismatch in i32.eq, expected i32 but got i64. error: type mismatch in i32.eq, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:365: assert_invalid passed: error: type mismatch in i32.ge_s, expected i32 but got i64. error: type mismatch in i32.ge_s, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:366: assert_invalid passed: error: type mismatch in i32.ge_u, expected i32 but got i64. error: type mismatch in i32.ge_u, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:367: assert_invalid passed: error: type mismatch in i32.gt_s, expected i32 but got i64. error: type mismatch in i32.gt_s, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:368: assert_invalid passed: error: type mismatch in i32.gt_u, expected i32 but got i64. error: type mismatch in i32.gt_u, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:369: assert_invalid passed: error: type mismatch in i32.le_s, expected i32 but got i64. error: type mismatch in i32.le_s, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:370: assert_invalid passed: error: type mismatch in i32.le_u, expected i32 but got i64. error: type mismatch in i32.le_u, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:371: assert_invalid passed: error: type mismatch in i32.lt_s, expected i32 but got i64. error: type mismatch in i32.lt_s, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:372: assert_invalid passed: error: type mismatch in i32.lt_u, expected i32 but got i64. error: type mismatch in i32.lt_u, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:373: assert_invalid passed: error: type mismatch in i32.ne, expected i32 but got i64. error: type mismatch in i32.ne, expected i32 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:374: assert_invalid passed: error: type mismatch in i64.eq, expected i64 but got i32. error: type mismatch in i64.eq, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:375: assert_invalid passed: error: type mismatch in i64.ge_s, expected i64 but got i32. error: type mismatch in i64.ge_s, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:376: assert_invalid passed: error: type mismatch in i64.ge_u, expected i64 but got i32. error: type mismatch in i64.ge_u, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:377: assert_invalid passed: error: type mismatch in i64.gt_s, expected i64 but got i32. error: type mismatch in i64.gt_s, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:378: assert_invalid passed: error: type mismatch in i64.gt_u, expected i64 but got i32. error: type mismatch in i64.gt_u, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:379: assert_invalid passed: error: type mismatch in i64.le_s, expected i64 but got i32. error: type mismatch in i64.le_s, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:380: assert_invalid passed: error: type mismatch in i64.le_u, expected i64 but got i32. error: type mismatch in i64.le_u, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:381: assert_invalid passed: error: type mismatch in i64.lt_s, expected i64 but got i32. error: type mismatch in i64.lt_s, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:382: assert_invalid passed: error: type mismatch in i64.lt_u, expected i64 but got i32. error: type mismatch in i64.lt_u, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:383: assert_invalid passed: error: type mismatch in i64.ne, expected i64 but got i32. error: type mismatch in i64.ne, expected i64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:384: assert_invalid passed: error: type mismatch in f32.eq, expected f32 but got i64. error: type mismatch in f32.eq, expected f32 but got f64. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:385: assert_invalid passed: error: type mismatch in f32.ge, expected f32 but got i64. error: type mismatch in f32.ge, expected f32 but got f64. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:386: assert_invalid passed: error: type mismatch in f32.gt, expected f32 but got i64. error: type mismatch in f32.gt, expected f32 but got f64. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:387: assert_invalid passed: error: type mismatch in f32.le, expected f32 but got i64. error: type mismatch in f32.le, expected f32 but got f64. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:388: assert_invalid passed: error: type mismatch in f32.lt, expected f32 but got i64. error: type mismatch in f32.lt, expected f32 but got f64. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:389: assert_invalid passed: error: type mismatch in f32.ne, expected f32 but got i64. error: type mismatch in f32.ne, expected f32 but got f64. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:390: assert_invalid passed: error: type mismatch in f64.eq, expected f64 but got i64. error: type mismatch in f64.eq, expected f64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:391: assert_invalid passed: error: type mismatch in f64.ge, expected f64 but got i64. error: type mismatch in f64.ge, expected f64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:392: assert_invalid passed: error: type mismatch in f64.gt, expected f64 but got i64. error: type mismatch in f64.gt, expected f64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:393: assert_invalid passed: error: type mismatch in f64.le, expected f64 but got i64. error: type mismatch in f64.le, expected f64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:394: assert_invalid passed: error: type mismatch in f64.lt, expected f64 but got i64. error: type mismatch in f64.lt, expected f64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:395: assert_invalid passed: error: type mismatch in f64.ne, expected f64 but got i64. error: type mismatch in f64.ne, expected f64 but got f32. - error: @0x0000001f: OnCompareExpr callback failed + 000001f: error: OnCompareExpr callback failed out/third_party/testsuite/typecheck.wast:398: assert_invalid passed: error: type mismatch in i32.wrap/i64, expected i64 but got f32. - error: @0x0000001d: OnConvertExpr callback failed + 000001d: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:399: assert_invalid passed: error: type mismatch in i32.trunc_s/f32, expected f32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:400: assert_invalid passed: error: type mismatch in i32.trunc_u/f32, expected f32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:401: assert_invalid passed: error: type mismatch in i32.trunc_s/f64, expected f64 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:402: assert_invalid passed: error: type mismatch in i32.trunc_u/f64, expected f64 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:403: assert_invalid passed: error: type mismatch in i32.reinterpret/f32, expected f32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:404: assert_invalid passed: error: type mismatch in i64.extend_s/i32, expected i32 but got f32. - error: @0x0000001d: OnConvertExpr callback failed + 000001d: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:405: assert_invalid passed: error: type mismatch in i64.extend_u/i32, expected i32 but got f32. - error: @0x0000001d: OnConvertExpr callback failed + 000001d: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:406: assert_invalid passed: error: type mismatch in i64.trunc_s/f32, expected f32 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:407: assert_invalid passed: error: type mismatch in i64.trunc_u/f32, expected f32 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:408: assert_invalid passed: error: type mismatch in i64.trunc_s/f64, expected f64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:409: assert_invalid passed: error: type mismatch in i64.trunc_u/f64, expected f64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:410: assert_invalid passed: error: type mismatch in i64.reinterpret/f64, expected f64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:411: assert_invalid passed: error: type mismatch in f32.convert_s/i32, expected i32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:412: assert_invalid passed: error: type mismatch in f32.convert_u/i32, expected i32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:413: assert_invalid passed: error: type mismatch in f32.convert_s/i64, expected i64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:414: assert_invalid passed: error: type mismatch in f32.convert_u/i64, expected i64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:415: assert_invalid passed: error: type mismatch in f32.demote/f64, expected f64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:416: assert_invalid passed: error: type mismatch in f32.reinterpret/i32, expected i32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:417: assert_invalid passed: error: type mismatch in f64.convert_s/i32, expected i32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:418: assert_invalid passed: error: type mismatch in f64.convert_u/i32, expected i32 but got i64. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:419: assert_invalid passed: error: type mismatch in f64.convert_s/i64, expected i64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:420: assert_invalid passed: error: type mismatch in f64.convert_u/i64, expected i64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:421: assert_invalid passed: error: type mismatch in f64.promote/f32, expected f32 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:422: assert_invalid passed: error: type mismatch in f64.reinterpret/i64, expected i64 but got i32. - error: @0x0000001a: OnConvertExpr callback failed + 000001a: error: OnConvertExpr callback failed out/third_party/testsuite/typecheck.wast:425: assert_invalid passed: error: type mismatch in grow_memory, expected i32 but got f32. - error: @0x00000023: OnGrowMemoryExpr callback failed + 0000023: error: OnGrowMemoryExpr callback failed 193/193 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/unreached-invalid.txt b/test/spec/unreached-invalid.txt index 443e3092..6f2df766 100644 --- a/test/spec/unreached-invalid.txt +++ b/test/spec/unreached-invalid.txt @@ -3,311 +3,311 @@ (;; STDOUT ;;; out/third_party/testsuite/unreached-invalid.wast:4: assert_invalid passed: error: invalid local_index: 0 (max 0) - error: @0x0000001a: OnGetLocalExpr callback failed + 000001a: error: OnGetLocalExpr callback failed out/third_party/testsuite/unreached-invalid.wast:8: assert_invalid passed: error: invalid global_index: 0 (max 0) - error: @0x0000001a: OnGetGlobalExpr callback failed + 000001a: error: OnGetGlobalExpr callback failed out/third_party/testsuite/unreached-invalid.wast:12: assert_invalid passed: - error: @0x0000001a: invalid call function index: 1 + 000001a: error: invalid call function index: 1 out/third_party/testsuite/unreached-invalid.wast:16: assert_invalid passed: error: invalid depth: 1 (max 0) - error: @0x0000001a: OnBrExpr callback failed + 000001a: error: OnBrExpr callback failed out/third_party/testsuite/unreached-invalid.wast:21: assert_invalid passed: error: type mismatch in i64.eqz, expected i64 but got i32. - error: @0x0000001b: OnConvertExpr callback failed + 000001b: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:27: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x0000001f: EndFunctionBody callback failed + 000001f: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:33: assert_invalid passed: error: type mismatch in select, expected i32 but got i64. - error: @0x00000023: OnSelectExpr callback failed + 0000023: error: OnSelectExpr callback failed out/third_party/testsuite/unreached-invalid.wast:42: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001b: EndFunctionBody callback failed + 000001b: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:46: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:50: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:56: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001a: EndFunctionBody callback failed + 000001a: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:60: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:64: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:71: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001f: OnConvertExpr callback failed + 000001f: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:77: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x00000021: OnConvertExpr callback failed + 0000021: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:83: assert_invalid passed: error: type stack size too small at f32.eq. got 1, expected at least 2 error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000020: OnCompareExpr callback failed + 0000020: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:89: assert_invalid passed: error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:95: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x0000001e: OnEndExpr callback failed + 000001e: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:101: assert_invalid passed: error: type mismatch in block, expected i32 but got f32. - error: @0x00000024: OnEndExpr callback failed + 0000024: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:107: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:113: assert_invalid passed: error: type mismatch in loop, expected i32 but got f32. - error: @0x00000024: OnEndExpr callback failed + 0000024: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:119: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001c: EndFunctionBody callback failed + 000001c: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:125: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got f32. - error: @0x00000022: EndFunctionBody callback failed + 0000022: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:132: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001c: OnConvertExpr callback failed + 000001c: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:138: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001e: OnConvertExpr callback failed + 000001e: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:144: assert_invalid passed: error: type stack size too small at f32.eq. got 1, expected at least 2 error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x0000001d: OnCompareExpr callback failed + 000001d: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:150: assert_invalid passed: error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000020: OnCompareExpr callback failed + 0000020: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:156: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x0000001d: OnEndExpr callback failed + 000001d: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:162: assert_invalid passed: error: type mismatch in block, expected i32 but got f32. - error: @0x00000025: OnEndExpr callback failed + 0000025: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:168: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x0000001f: OnEndExpr callback failed + 000001f: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:174: assert_invalid passed: error: type mismatch in loop, expected i32 but got f32. - error: @0x00000023: OnEndExpr callback failed + 0000023: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:180: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001b: EndFunctionBody callback failed + 000001b: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:186: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got f32. - error: @0x00000021: EndFunctionBody callback failed + 0000021: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:193: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001c: OnConvertExpr callback failed + 000001c: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:199: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x0000001e: OnConvertExpr callback failed + 000001e: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:205: assert_invalid passed: error: type stack size too small at f32.eq. got 1, expected at least 2 error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x0000001d: OnCompareExpr callback failed + 000001d: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:211: assert_invalid passed: error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000020: OnCompareExpr callback failed + 0000020: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:217: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x0000001d: OnEndExpr callback failed + 000001d: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:223: assert_invalid passed: error: type mismatch in block, expected i32 but got f32. - error: @0x00000023: OnEndExpr callback failed + 0000023: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:229: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x0000001f: OnEndExpr callback failed + 000001f: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:235: assert_invalid passed: error: type mismatch in loop, expected i32 but got f32. - error: @0x00000021: OnEndExpr callback failed + 0000021: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:241: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001b: EndFunctionBody callback failed + 000001b: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:247: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got f32. - error: @0x0000001f: EndFunctionBody callback failed + 000001f: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:254: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001f: OnConvertExpr callback failed + 000001f: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:260: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x00000021: OnConvertExpr callback failed + 0000021: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:266: assert_invalid passed: error: type stack size too small at f32.eq. got 1, expected at least 2 error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000020: OnCompareExpr callback failed + 0000020: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:272: assert_invalid passed: error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:278: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:284: assert_invalid passed: error: type mismatch in block, expected i32 but got f32. error: type stack at end of block is 1, expected 0 - error: @0x00000026: OnEndExpr callback failed + 0000026: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:291: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x00000022: OnEndExpr callback failed + 0000022: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:297: assert_invalid passed: error: type mismatch in loop, expected i32 but got f32. - error: @0x00000024: OnEndExpr callback failed + 0000024: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:304: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001e: EndFunctionBody callback failed + 000001e: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:310: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got f32. - error: @0x00000022: EndFunctionBody callback failed + 0000022: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:318: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x00000020: OnConvertExpr callback failed + 0000020: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:324: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x00000022: OnConvertExpr callback failed + 0000022: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:330: assert_invalid passed: error: type stack size too small at f32.eq. got 1, expected at least 2 error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000021: OnCompareExpr callback failed + 0000021: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:336: assert_invalid passed: error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000024: OnCompareExpr callback failed + 0000024: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:342: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000021: OnEndExpr callback failed + 0000021: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:348: assert_invalid passed: error: type mismatch in block, expected i32 but got f32. error: type stack at end of block is 1, expected 0 - error: @0x00000027: OnEndExpr callback failed + 0000027: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:354: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x00000023: OnEndExpr callback failed + 0000023: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:360: assert_invalid passed: error: type mismatch in loop, expected i32 but got f32. - error: @0x00000025: OnEndExpr callback failed + 0000025: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:366: assert_invalid passed: error: type stack at end of function is 1, expected 0 - error: @0x0000001f: EndFunctionBody callback failed + 000001f: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:372: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got f32. - error: @0x00000023: EndFunctionBody callback failed + 0000023: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:379: assert_invalid passed: error: type stack size too small at i32.eqz. got 0, expected at least 1 - error: @0x0000001d: OnConvertExpr callback failed + 000001d: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:385: assert_invalid passed: error: type mismatch in i32.eqz, expected i32 but got f32. - error: @0x00000021: OnConvertExpr callback failed + 0000021: error: OnConvertExpr callback failed out/third_party/testsuite/unreached-invalid.wast:391: assert_invalid passed: error: type stack size too small at f32.eq. got 1, expected at least 2 error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x0000001e: OnCompareExpr callback failed + 000001e: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:397: assert_invalid passed: error: type mismatch in f32.eq, expected f32 but got i32. - error: @0x00000023: OnCompareExpr callback failed + 0000023: error: OnCompareExpr callback failed out/third_party/testsuite/unreached-invalid.wast:403: assert_invalid passed: error: type stack at end of if is 1, expected 0 - error: @0x0000001e: OnEndExpr callback failed + 000001e: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:409: assert_invalid passed: error: if without else cannot have type signature. error: type mismatch in if, expected i32 but got f32. - error: @0x00000022: OnEndExpr callback failed + 0000022: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:415: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:421: assert_invalid passed: error: type mismatch in block, expected i32 but got f32. - error: @0x00000024: OnEndExpr callback failed + 0000024: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:427: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:433: assert_invalid passed: error: type mismatch in loop, expected i32 but got f32. - error: @0x00000024: OnEndExpr callback failed + 0000024: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:440: assert_invalid passed: error: type mismatch in return, expected i32 but got f64. - error: @0x00000025: OnReturnExpr callback failed + 0000025: error: OnReturnExpr callback failed out/third_party/testsuite/unreached-invalid.wast:447: assert_invalid passed: error: type mismatch in br, expected i32 but got f64. - error: @0x00000029: OnBrExpr callback failed + 0000029: error: OnBrExpr callback failed out/third_party/testsuite/unreached-invalid.wast:454: assert_invalid passed: error: type mismatch in br_if, expected i32 but got f32. - error: @0x00000021: OnBrIfExpr callback failed + 0000021: error: OnBrIfExpr callback failed out/third_party/testsuite/unreached-invalid.wast:460: assert_invalid passed: error: type mismatch in br_table, expected i32 but got f32. - error: @0x00000022: OnBrTableExpr callback failed + 0000022: error: OnBrTableExpr callback failed out/third_party/testsuite/unreached-invalid.wast:466: assert_invalid passed: error: type mismatch in br_table, expected i32 but got f32. - error: @0x00000025: OnBrTableExpr callback failed + 0000025: error: OnBrTableExpr callback failed out/third_party/testsuite/unreached-invalid.wast:472: assert_invalid passed: error: type mismatch in br_table, expected void but got f32. - error: @0x00000023: OnBrTableExpr callback failed + 0000023: error: OnBrTableExpr callback failed out/third_party/testsuite/unreached-invalid.wast:484: assert_invalid passed: error: type mismatch in br_table, expected f64 but got f32. - error: @0x00000023: OnBrTableExpr callback failed + 0000023: error: OnBrTableExpr callback failed out/third_party/testsuite/unreached-invalid.wast:499: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:505: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000020: EndFunctionBody callback failed + 0000020: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:511: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000022: EndFunctionBody callback failed + 0000022: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:517: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000023: OnEndExpr callback failed + 0000023: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:524: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000021: OnEndExpr callback failed + 0000021: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:530: assert_invalid passed: error: type stack size too small at block. got 0, expected at least 1 - error: @0x00000022: OnEndExpr callback failed + 0000022: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:536: assert_invalid passed: error: type mismatch in block, expected i32 but got i64. - error: @0x00000024: OnEndExpr callback failed + 0000024: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:543: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000023: OnEndExpr callback failed + 0000023: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:549: assert_invalid passed: error: type stack size too small at block. got 0, expected at least 1 - error: @0x00000025: OnEndExpr callback failed + 0000025: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:555: assert_invalid passed: error: type mismatch in block, expected i32 but got i64. - error: @0x00000027: OnEndExpr callback failed + 0000027: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:563: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000024: OnEndExpr callback failed + 0000024: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:570: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:576: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000022: EndFunctionBody callback failed + 0000022: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:582: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000024: EndFunctionBody callback failed + 0000024: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:588: assert_invalid passed: error: type stack at end of block is 1, expected 0 - error: @0x00000025: OnEndExpr callback failed + 0000025: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:596: assert_invalid passed: error: type stack at end of loop is 1, expected 0 - error: @0x00000020: OnEndExpr callback failed + 0000020: error: OnEndExpr callback failed out/third_party/testsuite/unreached-invalid.wast:602: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000020: EndFunctionBody callback failed + 0000020: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:608: assert_invalid passed: error: type mismatch in implicit return, expected i32 but got i64. - error: @0x00000022: EndFunctionBody callback failed + 0000022: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:615: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x0000001f: EndFunctionBody callback failed + 000001f: error: EndFunctionBody callback failed out/third_party/testsuite/unreached-invalid.wast:621: assert_invalid passed: error: type stack size too small at implicit return. got 0, expected at least 1 - error: @0x00000020: EndFunctionBody callback failed + 0000020: error: EndFunctionBody callback failed 100/100 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/utf8-custom-section-id.txt b/test/spec/utf8-custom-section-id.txt index 722aa5b6..e08e9a4d 100644 --- a/test/spec/utf8-custom-section-id.txt +++ b/test/spec/utf8-custom-section-id.txt @@ -2,356 +2,356 @@ ;;; STDIN_FILE: third_party/testsuite/utf8-custom-section-id.wast (;; STDOUT ;;; out/third_party/testsuite/utf8-custom-section-id.wast:7: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:17: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:27: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:37: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:47: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:57: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:69: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:79: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:89: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:101: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:111: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:121: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:131: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:141: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:151: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:161: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:171: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:181: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:191: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:201: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:211: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:223: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:233: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:243: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:253: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:263: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:275: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:285: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:295: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:305: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:315: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:325: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:335: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:345: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:355: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:365: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:375: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:385: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:395: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:405: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:415: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:425: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:435: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:445: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:455: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:465: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:475: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:485: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:495: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:505: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:515: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:525: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:535: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:545: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:555: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:565: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:575: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:585: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:597: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:607: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:617: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:627: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:637: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:647: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:657: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:667: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:677: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:687: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:697: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:707: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:717: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:727: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:737: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:747: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:757: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:767: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:777: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:787: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:797: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:807: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:817: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:827: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:839: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: section name + 0000010: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:849: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:859: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:869: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:879: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:889: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:899: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:911: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:921: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:931: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:941: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:951: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:961: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:971: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:981: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:991: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1001: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1011: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1021: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1031: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1041: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1051: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1061: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1071: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1081: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1091: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1101: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1111: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1121: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1131: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1141: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1151: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1163: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1173: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1183: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1193: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1203: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1213: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1223: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1233: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1243: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1253: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1263: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1273: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1283: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1293: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1303: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1313: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1325: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1335: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1345: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1355: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1365: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1375: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1385: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1395: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1405: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1415: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1425: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1435: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1445: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1455: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1465: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1475: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1487: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: section name + 0000011: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1497: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1507: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: section name + 0000010: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1517: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1527: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1537: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1547: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1557: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1567: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1579: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: section name + 0000010: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1589: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: section name + 0000010: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1601: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: section name + 0000012: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1611: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: section name + 0000010: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1621: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: section name + 0000011: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1631: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1641: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: section name + 0000010: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1651: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1661: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1671: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1681: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: section name + 000000e: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1691: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1701: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1713: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: section name + 0000011: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1723: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: section name + 0000011: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1735: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1745: assert_malformed passed: - error: @0x0000000c: invalid utf-8 encoding: section name + 000000c: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1755: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1765: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1775: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: section name + 000000d: error: invalid utf-8 encoding: section name out/third_party/testsuite/utf8-custom-section-id.wast:1785: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: section name + 000000f: error: invalid utf-8 encoding: section name 176/176 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/utf8-import-field.txt b/test/spec/utf8-import-field.txt index 9a211152..3a8822f4 100644 --- a/test/spec/utf8-import-field.txt +++ b/test/spec/utf8-import-field.txt @@ -2,356 +2,356 @@ ;;; STDIN_FILE: third_party/testsuite/utf8-import-field.wast (;; STDOUT ;;; out/third_party/testsuite/utf8-import-field.wast:7: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:22: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:37: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:52: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:67: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:82: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:99: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:114: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:129: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:146: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:161: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:176: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:191: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:206: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:221: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:236: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:251: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:266: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:281: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:296: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:311: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:328: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:343: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:358: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:373: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:388: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:405: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:420: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:435: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:450: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:465: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:480: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:495: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:510: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:525: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:540: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:555: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:570: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:585: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:600: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:615: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:630: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:645: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:660: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:675: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:690: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:705: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:720: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:735: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:750: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:765: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:780: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:795: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:810: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:825: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:840: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:855: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:870: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:887: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:902: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:917: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:932: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:947: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:962: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:977: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:992: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1007: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1022: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1037: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1052: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1067: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1082: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1097: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1112: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1127: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1142: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1157: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1172: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1187: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1202: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1217: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1232: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1249: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: import module name + 0000011: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1264: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1279: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1294: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1309: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1324: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1339: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1356: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1371: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1386: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1401: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1416: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1431: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1446: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1461: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1476: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1491: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1506: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1521: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1536: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1551: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1566: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1581: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1596: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1611: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1626: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1641: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1656: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1671: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1686: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1701: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1716: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1733: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1748: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1763: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1778: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1793: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1808: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1823: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1838: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1853: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1868: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1883: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1898: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1913: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1928: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1943: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1958: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1975: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:1990: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2005: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2020: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2035: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2050: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2065: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2080: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2095: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2110: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2125: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2140: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2155: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2170: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2185: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2200: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2217: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import module name + 0000012: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2232: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2247: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: import module name + 0000011: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2262: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2277: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2292: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2307: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2322: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2337: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2354: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: import module name + 0000011: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2369: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: import module name + 0000011: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2386: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import module name + 0000013: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2401: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: import module name + 0000011: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2416: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import module name + 0000012: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2431: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2446: assert_malformed passed: - error: @0x00000011: invalid utf-8 encoding: import module name + 0000011: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2461: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2476: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2491: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2506: assert_malformed passed: - error: @0x0000000f: invalid utf-8 encoding: import module name + 000000f: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2521: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2536: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2553: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import module name + 0000012: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2568: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import module name + 0000012: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2585: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2600: assert_malformed passed: - error: @0x0000000d: invalid utf-8 encoding: import module name + 000000d: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2615: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2630: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2645: assert_malformed passed: - error: @0x0000000e: invalid utf-8 encoding: import module name + 000000e: error: invalid utf-8 encoding: import module name out/third_party/testsuite/utf8-import-field.wast:2660: assert_malformed passed: - error: @0x00000010: invalid utf-8 encoding: import module name + 0000010: error: invalid utf-8 encoding: import module name 176/176 tests passed. ;;; STDOUT ;;) diff --git a/test/spec/utf8-import-module.txt b/test/spec/utf8-import-module.txt index acca5ec4..08a38c52 100644 --- a/test/spec/utf8-import-module.txt +++ b/test/spec/utf8-import-module.txt @@ -2,356 +2,356 @@ ;;; STDIN_FILE: third_party/testsuite/utf8-import-module.wast (;; STDOUT ;;; out/third_party/testsuite/utf8-import-module.wast:7: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:22: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:37: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:52: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:67: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:82: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:99: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:114: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:129: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:146: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:161: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:176: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:191: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:206: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:221: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:236: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:251: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:266: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:281: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:296: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:311: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:328: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:343: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:358: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:373: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:388: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:405: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:420: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:435: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:450: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:465: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:480: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:495: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:510: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:525: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:540: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:555: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:570: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:585: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:600: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:615: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:630: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:645: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:660: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:675: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:690: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:705: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:720: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:735: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:750: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:765: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:780: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:795: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:810: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:825: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:840: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:855: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:870: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:887: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:902: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:917: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:932: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:947: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:962: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:977: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:992: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1007: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1022: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1037: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1052: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1067: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1082: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1097: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1112: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1127: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1142: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1157: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1172: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1187: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1202: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1217: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1232: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1249: assert_malformed passed: - error: @0x00000016: invalid utf-8 encoding: import field name + 0000016: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1264: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1279: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1294: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1309: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1324: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1339: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1356: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1371: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1386: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1401: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1416: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1431: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1446: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1461: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1476: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1491: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1506: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1521: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1536: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1551: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1566: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1581: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1596: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1611: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1626: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1641: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1656: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1671: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1686: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1701: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1716: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1733: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1748: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1763: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1778: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1793: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1808: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1823: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1838: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1853: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1868: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1883: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1898: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1913: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1928: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1943: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1958: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1975: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:1990: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2005: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2020: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2035: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2050: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2065: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2080: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2095: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2110: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2125: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2140: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2155: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2170: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2185: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2200: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2217: assert_malformed passed: - error: @0x00000017: invalid utf-8 encoding: import field name + 0000017: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2232: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2247: assert_malformed passed: - error: @0x00000016: invalid utf-8 encoding: import field name + 0000016: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2262: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2277: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2292: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2307: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2322: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2337: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2354: assert_malformed passed: - error: @0x00000016: invalid utf-8 encoding: import field name + 0000016: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2369: assert_malformed passed: - error: @0x00000016: invalid utf-8 encoding: import field name + 0000016: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2386: assert_malformed passed: - error: @0x00000018: invalid utf-8 encoding: import field name + 0000018: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2401: assert_malformed passed: - error: @0x00000016: invalid utf-8 encoding: import field name + 0000016: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2416: assert_malformed passed: - error: @0x00000017: invalid utf-8 encoding: import field name + 0000017: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2431: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2446: assert_malformed passed: - error: @0x00000016: invalid utf-8 encoding: import field name + 0000016: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2461: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2476: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2491: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2506: assert_malformed passed: - error: @0x00000014: invalid utf-8 encoding: import field name + 0000014: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2521: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2536: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2553: assert_malformed passed: - error: @0x00000017: invalid utf-8 encoding: import field name + 0000017: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2568: assert_malformed passed: - error: @0x00000017: invalid utf-8 encoding: import field name + 0000017: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2585: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2600: assert_malformed passed: - error: @0x00000012: invalid utf-8 encoding: import field name + 0000012: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2615: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2630: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2645: assert_malformed passed: - error: @0x00000013: invalid utf-8 encoding: import field name + 0000013: error: invalid utf-8 encoding: import field name out/third_party/testsuite/utf8-import-module.wast:2660: assert_malformed passed: - error: @0x00000015: invalid utf-8 encoding: import field name + 0000015: error: invalid utf-8 encoding: import field name 176/176 tests passed. ;;; STDOUT ;;) diff --git a/test/typecheck/bad-assertreturn-invoke-type-mismatch.txt b/test/typecheck/bad-assertreturn-invoke-type-mismatch.txt index 95e1e184..b52d6fad 100644 --- a/test/typecheck/bad-assertreturn-invoke-type-mismatch.txt +++ b/test/typecheck/bad-assertreturn-invoke-type-mismatch.txt @@ -5,7 +5,7 @@ (export "foo" 0)) (assert_return (invoke "foo" (f32.const 0)) (i32.const 0)) (;; STDERR ;;; -out/test/typecheck/bad-assertreturn-invoke-type-mismatch.txt:5:17: syntax error, unexpected NAT, expecting ( +out/test/typecheck/bad-assertreturn-invoke-type-mismatch.txt:5:17: error: syntax error, unexpected NAT, expecting ( (export "foo" 0)) ^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-assertreturn-type-mismatch.txt b/test/typecheck/bad-assertreturn-type-mismatch.txt index 098d9d5f..f2f912c3 100644 --- a/test/typecheck/bad-assertreturn-type-mismatch.txt +++ b/test/typecheck/bad-assertreturn-type-mismatch.txt @@ -5,7 +5,7 @@ (export "foo" 0)) (assert_return (invoke "foo" (i32.const 0)) (f32.const 0)) (;; STDERR ;;; -out/test/typecheck/bad-assertreturn-type-mismatch.txt:5:17: syntax error, unexpected NAT, expecting ( +out/test/typecheck/bad-assertreturn-type-mismatch.txt:5:17: error: syntax error, unexpected NAT, expecting ( (export "foo" 0)) ^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-binary-type-mismatch-1.txt b/test/typecheck/bad-binary-type-mismatch-1.txt index c52ae186..9ef8e1ad 100644 --- a/test/typecheck/bad-binary-type-mismatch-1.txt +++ b/test/typecheck/bad-binary-type-mismatch-1.txt @@ -6,7 +6,7 @@ i32.add drop)) (;; STDERR ;;; -out/test/typecheck/bad-binary-type-mismatch-1.txt:6:5: type mismatch in i32.add, expected i32 but got f32. +out/test/typecheck/bad-binary-type-mismatch-1.txt:6:5: error: type mismatch in i32.add, expected i32 but got f32. i32.add ^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-binary-type-mismatch-2.txt b/test/typecheck/bad-binary-type-mismatch-2.txt index 6bd9b850..9eff33b2 100644 --- a/test/typecheck/bad-binary-type-mismatch-2.txt +++ b/test/typecheck/bad-binary-type-mismatch-2.txt @@ -6,7 +6,7 @@ i32.add drop)) (;; STDERR ;;; -out/test/typecheck/bad-binary-type-mismatch-2.txt:6:5: type mismatch in i32.add, expected i32 but got f32. +out/test/typecheck/bad-binary-type-mismatch-2.txt:6:5: error: type mismatch in i32.add, expected i32 but got f32. i32.add ^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-brtable-type-mismatch.txt b/test/typecheck/bad-brtable-type-mismatch.txt index 060aa146..71a66b86 100644 --- a/test/typecheck/bad-brtable-type-mismatch.txt +++ b/test/typecheck/bad-brtable-type-mismatch.txt @@ -11,7 +11,7 @@ end i32.const 2)) (;; STDERR ;;; -out/test/typecheck/bad-brtable-type-mismatch.txt:7:9: type mismatch in br_table, expected i32 but got f32. +out/test/typecheck/bad-brtable-type-mismatch.txt:7:9: error: type mismatch in br_table, expected i32 but got f32. br_table 0 1 ^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-call-result-mismatch.txt b/test/typecheck/bad-call-result-mismatch.txt index a84b5ca9..1dab8f31 100644 --- a/test/typecheck/bad-call-result-mismatch.txt +++ b/test/typecheck/bad-call-result-mismatch.txt @@ -23,7 +23,7 @@ nop end)) (;; STDERR ;;; -out/test/typecheck/bad-call-result-mismatch.txt:3:11: syntax error, unexpected VAR, expecting TEXT +out/test/typecheck/bad-call-result-mismatch.txt:3:11: error: syntax error, unexpected VAR, expecting TEXT (import $import "foo" "bar" (result f32)) ^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-call-type-mismatch.txt b/test/typecheck/bad-call-type-mismatch.txt index 49076145..34a6ac49 100644 --- a/test/typecheck/bad-call-type-mismatch.txt +++ b/test/typecheck/bad-call-type-mismatch.txt @@ -5,7 +5,7 @@ i64.const 0 call 0)) (;; STDERR ;;; -out/test/typecheck/bad-call-type-mismatch.txt:6:5: type mismatch in call, expected i32 but got i64. +out/test/typecheck/bad-call-type-mismatch.txt:6:5: error: type mismatch in call, expected i32 but got i64. call 0)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-callimport-type-mismatch.txt b/test/typecheck/bad-callimport-type-mismatch.txt index 0f19ce1d..034ec599 100644 --- a/test/typecheck/bad-callimport-type-mismatch.txt +++ b/test/typecheck/bad-callimport-type-mismatch.txt @@ -5,7 +5,7 @@ f32.const 0 call 0)) (;; STDERR ;;; -out/test/typecheck/bad-callimport-type-mismatch.txt:6:5: type mismatch in call, expected i32 but got f32. +out/test/typecheck/bad-callimport-type-mismatch.txt:6:5: error: type mismatch in call, expected i32 but got f32. call 0)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-callindirect-func-type-mismatch.txt b/test/typecheck/bad-callindirect-func-type-mismatch.txt index 91a5e663..e46e4044 100644 --- a/test/typecheck/bad-callindirect-func-type-mismatch.txt +++ b/test/typecheck/bad-callindirect-func-type-mismatch.txt @@ -6,7 +6,7 @@ f32.const 0 call_indirect $t)) (;; STDERR ;;; -out/test/typecheck/bad-callindirect-func-type-mismatch.txt:7:5: type mismatch in call_indirect, expected i32 but got f32. +out/test/typecheck/bad-callindirect-func-type-mismatch.txt:7:5: error: type mismatch in call_indirect, expected i32 but got f32. call_indirect $t)) ^^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-callindirect-type-mismatch.txt b/test/typecheck/bad-callindirect-type-mismatch.txt index 1879bb82..b7e8d4b1 100644 --- a/test/typecheck/bad-callindirect-type-mismatch.txt +++ b/test/typecheck/bad-callindirect-type-mismatch.txt @@ -9,7 +9,7 @@ call_indirect $t drop)) (;; STDERR ;;; -out/test/typecheck/bad-callindirect-type-mismatch.txt:9:5: type mismatch in call_indirect, expected i32 but got f32. +out/test/typecheck/bad-callindirect-type-mismatch.txt:9:5: error: type mismatch in call_indirect, expected i32 but got f32. call_indirect $t ^^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-cast-type-mismatch.txt b/test/typecheck/bad-cast-type-mismatch.txt index 875af406..0b94c732 100644 --- a/test/typecheck/bad-cast-type-mismatch.txt +++ b/test/typecheck/bad-cast-type-mismatch.txt @@ -5,7 +5,7 @@ f32.reinterpret/i32 drop)) (;; STDERR ;;; -out/test/typecheck/bad-cast-type-mismatch.txt:5:5: type mismatch in f32.reinterpret/i32, expected i32 but got f32. +out/test/typecheck/bad-cast-type-mismatch.txt:5:5: error: type mismatch in f32.reinterpret/i32, expected i32 but got f32. f32.reinterpret/i32 ^^^^^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-compare-type-mismatch-1.txt b/test/typecheck/bad-compare-type-mismatch-1.txt index c2720702..4cab0871 100644 --- a/test/typecheck/bad-compare-type-mismatch-1.txt +++ b/test/typecheck/bad-compare-type-mismatch-1.txt @@ -6,7 +6,7 @@ i32.eq drop)) (;; STDERR ;;; -out/test/typecheck/bad-compare-type-mismatch-1.txt:6:5: type mismatch in i32.eq, expected i32 but got f32. +out/test/typecheck/bad-compare-type-mismatch-1.txt:6:5: error: type mismatch in i32.eq, expected i32 but got f32. i32.eq ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-compare-type-mismatch-2.txt b/test/typecheck/bad-compare-type-mismatch-2.txt index d6e1e2c6..1ac0ae1e 100644 --- a/test/typecheck/bad-compare-type-mismatch-2.txt +++ b/test/typecheck/bad-compare-type-mismatch-2.txt @@ -6,7 +6,7 @@ f32.lt drop)) (;; STDERR ;;; -out/test/typecheck/bad-compare-type-mismatch-2.txt:6:5: type mismatch in f32.lt, expected f32 but got i32. +out/test/typecheck/bad-compare-type-mismatch-2.txt:6:5: error: type mismatch in f32.lt, expected f32 but got i32. f32.lt ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-convert-type-mismatch.txt b/test/typecheck/bad-convert-type-mismatch.txt index d0a2b072..60316ed1 100644 --- a/test/typecheck/bad-convert-type-mismatch.txt +++ b/test/typecheck/bad-convert-type-mismatch.txt @@ -5,7 +5,7 @@ i32.trunc_s/f32 drop)) (;; STDERR ;;; -out/test/typecheck/bad-convert-type-mismatch.txt:5:5: type mismatch in i32.trunc_s/f32, expected f32 but got i32. +out/test/typecheck/bad-convert-type-mismatch.txt:5:5: error: type mismatch in i32.trunc_s/f32, expected f32 but got i32. i32.trunc_s/f32 ^^^^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-expr-if.txt b/test/typecheck/bad-expr-if.txt index 5156997b..a295841b 100644 --- a/test/typecheck/bad-expr-if.txt +++ b/test/typecheck/bad-expr-if.txt @@ -9,7 +9,7 @@ end i32.add)) (;; STDERR ;;; -out/test/typecheck/bad-expr-if.txt:10:5: type stack size too small at i32.add. got 1, expected at least 2 +out/test/typecheck/bad-expr-if.txt:10:5: error: type stack size too small at i32.add. got 1, expected at least 2 i32.add)) ^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-function-result-type-mismatch.txt b/test/typecheck/bad-function-result-type-mismatch.txt index b4d95838..3c7aa368 100644 --- a/test/typecheck/bad-function-result-type-mismatch.txt +++ b/test/typecheck/bad-function-result-type-mismatch.txt @@ -3,7 +3,7 @@ (func (result i32) f32.const 0)) (;; STDERR ;;; -out/test/typecheck/bad-function-result-type-mismatch.txt:4:5: type mismatch in implicit return, expected i32 but got f32. +out/test/typecheck/bad-function-result-type-mismatch.txt:4:5: error: type mismatch in implicit return, expected i32 but got f32. f32.const 0)) ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-global-getglobal-type-mismatch.txt b/test/typecheck/bad-global-getglobal-type-mismatch.txt index 9993f5ae..eb38f9a0 100644 --- a/test/typecheck/bad-global-getglobal-type-mismatch.txt +++ b/test/typecheck/bad-global-getglobal-type-mismatch.txt @@ -3,7 +3,7 @@ (import "foo" "bar" (global i32)) (global f32 (get_global 0))) (;; STDERR ;;; -out/test/typecheck/bad-global-getglobal-type-mismatch.txt:4:16: type mismatch at global initializer expression. got i32, expected f32 +out/test/typecheck/bad-global-getglobal-type-mismatch.txt:4:16: error: type mismatch at global initializer expression. got i32, expected f32 (global f32 (get_global 0))) ^^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-global-no-init-expr.txt b/test/typecheck/bad-global-no-init-expr.txt index 67232d45..e0886fe2 100644 --- a/test/typecheck/bad-global-no-init-expr.txt +++ b/test/typecheck/bad-global-no-init-expr.txt @@ -3,10 +3,10 @@ (global i32) (global (mut f32))) (;; STDERR ;;; -out/test/typecheck/bad-global-no-init-expr.txt:3:4: type mismatch at global initializer expression. got void, expected i32 +out/test/typecheck/bad-global-no-init-expr.txt:3:4: error: type mismatch at global initializer expression. got void, expected i32 (global i32) ^^^^^^ -out/test/typecheck/bad-global-no-init-expr.txt:4:4: type mismatch at global initializer expression. got void, expected f32 +out/test/typecheck/bad-global-no-init-expr.txt:4:4: error: type mismatch at global initializer expression. got void, expected f32 (global (mut f32))) ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-global-type-mismatch.txt b/test/typecheck/bad-global-type-mismatch.txt index f1473afa..704bf870 100644 --- a/test/typecheck/bad-global-type-mismatch.txt +++ b/test/typecheck/bad-global-type-mismatch.txt @@ -2,7 +2,7 @@ (module (global i32 (f32.const 1))) (;; STDERR ;;; -out/test/typecheck/bad-global-type-mismatch.txt:3:16: type mismatch at global initializer expression. got f32, expected i32 +out/test/typecheck/bad-global-type-mismatch.txt:3:16: error: type mismatch at global initializer expression. got f32, expected i32 (global i32 (f32.const 1))) ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-grow-memory-type-mismatch.txt b/test/typecheck/bad-grow-memory-type-mismatch.txt index 932ac761..1cf5e70d 100644 --- a/test/typecheck/bad-grow-memory-type-mismatch.txt +++ b/test/typecheck/bad-grow-memory-type-mismatch.txt @@ -6,7 +6,7 @@ grow_memory drop)) (;; STDERR ;;; -out/test/typecheck/bad-grow-memory-type-mismatch.txt:6:5: type mismatch in grow_memory, expected i32 but got f32. +out/test/typecheck/bad-grow-memory-type-mismatch.txt:6:5: error: type mismatch in grow_memory, expected i32 but got f32. grow_memory ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-if-condition-type-mismatch.txt b/test/typecheck/bad-if-condition-type-mismatch.txt index 87b94f57..a549c902 100644 --- a/test/typecheck/bad-if-condition-type-mismatch.txt +++ b/test/typecheck/bad-if-condition-type-mismatch.txt @@ -10,7 +10,7 @@ drop) ) (;; STDERR ;;; -out/test/typecheck/bad-if-condition-type-mismatch.txt:5:5: type mismatch in if, expected i32 but got f32. +out/test/typecheck/bad-if-condition-type-mismatch.txt:5:5: error: type mismatch in if, expected i32 but got f32. if (result i32) ^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-if-type-mismatch.txt b/test/typecheck/bad-if-type-mismatch.txt index a5f4a27d..05b066a1 100644 --- a/test/typecheck/bad-if-type-mismatch.txt +++ b/test/typecheck/bad-if-type-mismatch.txt @@ -9,7 +9,7 @@ end drop)) (;; STDERR ;;; -out/test/typecheck/bad-if-type-mismatch.txt:6:7: type mismatch in if true branch, expected i32 but got f32. +out/test/typecheck/bad-if-type-mismatch.txt:6:7: error: type mismatch in if true branch, expected i32 but got f32. f32.const 0 ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-if-value-void.txt b/test/typecheck/bad-if-value-void.txt index b750d16b..3c07f276 100644 --- a/test/typecheck/bad-if-value-void.txt +++ b/test/typecheck/bad-if-value-void.txt @@ -11,7 +11,7 @@ drop end)) (;; STDERR ;;; -out/test/typecheck/bad-if-value-void.txt:7:9: type stack size too small at if true branch. got 0, expected at least 1 +out/test/typecheck/bad-if-value-void.txt:7:9: error: type stack size too small at if true branch. got 0, expected at least 1 nop ^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-invoke-type-mismatch.txt b/test/typecheck/bad-invoke-type-mismatch.txt index 004d2de3..bfe7234e 100644 --- a/test/typecheck/bad-invoke-type-mismatch.txt +++ b/test/typecheck/bad-invoke-type-mismatch.txt @@ -5,7 +5,7 @@ (export "foo" 0)) (invoke "foo" (f32.const 1.5)) (;; STDERR ;;; -out/test/typecheck/bad-invoke-type-mismatch.txt:5:17: syntax error, unexpected NAT, expecting ( +out/test/typecheck/bad-invoke-type-mismatch.txt:5:17: error: syntax error, unexpected NAT, expecting ( (export "foo" 0)) ^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-load-type-mismatch.txt b/test/typecheck/bad-load-type-mismatch.txt index 83fb33d0..b990e029 100644 --- a/test/typecheck/bad-load-type-mismatch.txt +++ b/test/typecheck/bad-load-type-mismatch.txt @@ -6,7 +6,7 @@ i32.load drop)) (;; STDERR ;;; -out/test/typecheck/bad-load-type-mismatch.txt:6:5: type mismatch in i32.load, expected i32 but got f32. +out/test/typecheck/bad-load-type-mismatch.txt:6:5: error: type mismatch in i32.load, expected i32 but got f32. i32.load ^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-nested-br.txt b/test/typecheck/bad-nested-br.txt index 4a9cf64d..0a392c98 100644 --- a/test/typecheck/bad-nested-br.txt +++ b/test/typecheck/bad-nested-br.txt @@ -18,7 +18,7 @@ ;; return statement here, or a value returned from (br $outer). )) (;; STDERR ;;; -out/test/typecheck/bad-nested-br.txt:15:7: type stack size too small at implicit return. got 0, expected at least 1 +out/test/typecheck/bad-nested-br.txt:15:7: error: type stack size too small at implicit return. got 0, expected at least 1 return ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-return-type-mismatch.txt b/test/typecheck/bad-return-type-mismatch.txt index db6eaef7..04915db1 100644 --- a/test/typecheck/bad-return-type-mismatch.txt +++ b/test/typecheck/bad-return-type-mismatch.txt @@ -4,7 +4,7 @@ f32.const 0 return)) (;; STDERR ;;; -out/test/typecheck/bad-return-type-mismatch.txt:5:5: type mismatch in return, expected i32 but got f32. +out/test/typecheck/bad-return-type-mismatch.txt:5:5: error: type mismatch in return, expected i32 but got f32. return)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-select-cond.txt b/test/typecheck/bad-select-cond.txt index fa2b1a19..498116b1 100644 --- a/test/typecheck/bad-select-cond.txt +++ b/test/typecheck/bad-select-cond.txt @@ -6,7 +6,7 @@ f32.const 0 select)) (;; STDERR ;;; -out/test/typecheck/bad-select-cond.txt:7:5: type mismatch in select, expected i32 but got f32. +out/test/typecheck/bad-select-cond.txt:7:5: error: type mismatch in select, expected i32 but got f32. select)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-select-value0.txt b/test/typecheck/bad-select-value0.txt index ebd63cac..0e9e1172 100644 --- a/test/typecheck/bad-select-value0.txt +++ b/test/typecheck/bad-select-value0.txt @@ -6,7 +6,7 @@ i32.const 0 select)) (;; STDERR ;;; -out/test/typecheck/bad-select-value0.txt:7:5: type mismatch in select, expected f32 but got f64. +out/test/typecheck/bad-select-value0.txt:7:5: error: type mismatch in select, expected f32 but got f64. select)) ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-select-value1.txt b/test/typecheck/bad-select-value1.txt index a25546f2..338facf6 100644 --- a/test/typecheck/bad-select-value1.txt +++ b/test/typecheck/bad-select-value1.txt @@ -7,7 +7,7 @@ select drop)) (;; STDERR ;;; -out/test/typecheck/bad-select-value1.txt:7:5: type mismatch in select, expected f32 but got i64. +out/test/typecheck/bad-select-value1.txt:7:5: error: type mismatch in select, expected f32 but got i64. select ^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-setlocal-type-mismatch.txt b/test/typecheck/bad-setlocal-type-mismatch.txt index 57c8b7af..456415e0 100644 --- a/test/typecheck/bad-setlocal-type-mismatch.txt +++ b/test/typecheck/bad-setlocal-type-mismatch.txt @@ -4,7 +4,7 @@ f32.const 0 set_local 0)) (;; STDERR ;;; -out/test/typecheck/bad-setlocal-type-mismatch.txt:5:5: type mismatch in set_local, expected i32 but got f32. +out/test/typecheck/bad-setlocal-type-mismatch.txt:5:5: error: type mismatch in set_local, expected i32 but got f32. set_local 0)) ^^^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-store-index-type-mismatch.txt b/test/typecheck/bad-store-index-type-mismatch.txt index 4107703d..726e8855 100644 --- a/test/typecheck/bad-store-index-type-mismatch.txt +++ b/test/typecheck/bad-store-index-type-mismatch.txt @@ -6,7 +6,7 @@ f32.const 0 i32.store)) (;; STDERR ;;; -out/test/typecheck/bad-store-index-type-mismatch.txt:7:5: type mismatch in i32.store, expected i32 but got f32. +out/test/typecheck/bad-store-index-type-mismatch.txt:7:5: error: type mismatch in i32.store, expected i32 but got f32. i32.store)) ^^^^^^^^^ ;;; STDERR ;;) diff --git a/test/typecheck/bad-unary-type-mismatch.txt b/test/typecheck/bad-unary-type-mismatch.txt index b7b3a49c..7b8a4771 100644 --- a/test/typecheck/bad-unary-type-mismatch.txt +++ b/test/typecheck/bad-unary-type-mismatch.txt @@ -5,7 +5,7 @@ f32.neg drop)) (;; STDERR ;;; -out/test/typecheck/bad-unary-type-mismatch.txt:5:5: type mismatch in f32.neg, expected f32 but got f64. +out/test/typecheck/bad-unary-type-mismatch.txt:5:5: error: type mismatch in f32.neg, expected f32 but got f64. f32.neg ^^^^^^^ ;;; STDERR ;;) |