Add internal fatal error code

This commit is contained in:
Sergey Kuznetsov
2026-08-11 17:36:52 +01:00
parent 95526371b0
commit ecc2f07ea3
10 changed files with 83 additions and 41 deletions

View File

@@ -292,7 +292,10 @@ TEST_F(WasmVMTest, FatalHostErrorStopsRun)
return std::unexpected(refused);
});
for (auto const error : {HostFunctionError::Unimplemented, HostFunctionError::NoMemExported})
for (auto const error :
{HostFunctionError::InternalFatal,
HostFunctionError::Unimplemented,
HostFunctionError::NoMemExported})
{
refused = error;