Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/utils/wabt_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ bool WabtEngine::instantiate(bytes_view wasm_binary)
const auto host_func = wabt::interp::HostFunc::New(m_store,
wabt::interp::FuncType{{wabt::Type::I32, wabt::Type::I32}, {wabt::Type::I32}},
[](wabt::interp::Thread& thread, const wabt::interp::Values& args,
wabt::interp::Values& results, wabt::interp::Trap::Ptr*) -> wabt::Result {
wabt::interp::Values& results, wabt::interp::Trap::Ptr*) noexcept -> wabt::Result {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is not a good ideas as wabt helpers may throw?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. Do they?

Copy link
Copy Markdown
Member Author

@axic axic Jun 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetCallerInstance() indexes a vector (with local bounds checking), memories(), UnsafeData, ByteSize, and Set seems fine. So I guess it is ok.

assert(args.size() == 2);
const auto offset = args[0].i32_;
const auto length = args[1].i32_;
Expand Down
2 changes: 1 addition & 1 deletion test/utils/wasm3_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Wasm3Engine final : public WasmEngine

namespace
{
const void* env_adler32(IM3Runtime /*runtime*/, uint64_t* stack, void* mem)
const void* env_adler32(IM3Runtime /*runtime*/, uint64_t* stack, void* mem) noexcept
{
const uint32_t offset = static_cast<uint32_t>(stack[0]);
const uint32_t length = static_cast<uint32_t>(stack[1]);
Expand Down