@@ -, +, @@ --- js/src/wasm/WasmSignalHandlers.cpp | 4 ++++ 1 file changed, 4 insertions(+) --- a/js/src/wasm/WasmSignalHandlers.cpp +++ a/js/src/wasm/WasmSignalHandlers.cpp @@ -1652,6 +1652,8 @@ ProcessHasSignalHandlers() bool wasm::EnsureSignalHandlers(JSContext* cx) { +#ifndef JS_CODEGEN_NONE + // Nothing to do if the platform doesn't support it. if (!ProcessHasSignalHandlers()) return true; @@ -1660,6 +1662,8 @@ wasm::EnsureSignalHandlers(JSContext* cx) // On OSX, each JSContext which runs wasm gets its own handler thread. if (!cx->wasmMachExceptionHandler.installed() && !cx->wasmMachExceptionHandler.install(cx)) return false; +#endif + #endif return true; --