MCPcopy Create free account
hub / github.com/WebAssembly/wabt / wabt_format_binary_errors

Function wabt_format_binary_errors

src/emscripten-helpers.cc:273–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273wabt::OutputBuffer* wabt_format_binary_errors(wabt::Errors* errors) {
274 std::string string_result =
275 FormatErrorsToString(*errors, wabt::Location::Type::Binary);
276
277 wabt::OutputBuffer* result = new wabt::OutputBuffer();
278 std::copy(string_result.begin(), string_result.end(),
279 std::back_inserter(result->data));
280 return result;
281}
282
283void wabt_destroy_errors(wabt::Errors* errors) {
284 delete errors;

Callers

nothing calls this directly

Calls 3

FormatErrorsToStringFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected