diff --git a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs index 69a404ec564e2..b1bd919430825 100644 --- a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs +++ b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs @@ -35,7 +35,7 @@ pub fn target() -> Target { exe_suffix: ".js".to_string(), linker: None, is_like_emscripten: true, - panic_strategy: PanicStrategy::Unwind, + panic_strategy: PanicStrategy::Abort, post_link_args, families: vec!["unix".to_string(), "wasm".to_string()], ..options