Truly independent web browser
LibJS: Abort test-js through std::process::abort()
Andreas Klingb7c038b9ed71
diff --git a/Libraries/LibJS/Rust/src/utilities/test_js.rs b/Libraries/LibJS/Rust/src/utilities/test_js.rsindex 8f4211ea16e..81fea18d3d7 100644--- a/Libraries/LibJS/Rust/src/utilities/test_js.rs+++ b/Libraries/LibJS/Rust/src/utilities/test_js.rs@@ -369,8 +369,7 @@ extern "C" fn handle_sigabrt(_: c_int) {if !set_abort_action(libc::SIG_DFL) {std::process::exit(1);}- // SAFETY: abort() has no preconditions.- unsafe { libc::abort() };+ std::process::abort();}#[cfg(unix)]