mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS: Stop propagating small OOM errors from the Error object
This commit is contained in:
Notes:
sideshowbarker
2024-07-16 21:34:08 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/54d1f4e234 Pull-request: https://github.com/SerenityOS/serenity/pull/20972 Reviewed-by: https://github.com/awesomekling
@@ -458,7 +458,7 @@ inline JSFileResult TestRunner::run_file_test(DeprecatedString const& test_path)
|
||||
if (is<JS::Error>(error_object)) {
|
||||
auto& error_as_error = static_cast<JS::Error&>(error_object);
|
||||
detail_builder.append('\n');
|
||||
detail_builder.append(error_as_error.stack_string(*g_vm).release_allocated_value_but_fixme_should_propagate_errors());
|
||||
detail_builder.append(error_as_error.stack_string());
|
||||
}
|
||||
|
||||
test_case.details = detail_builder.to_deprecated_string();
|
||||
|
||||
Reference in New Issue
Block a user