Compare commits

...

1 Commits

Author SHA1 Message Date
Dylan Conway
24c9a2958a remove 2025-10-22 18:57:52 -07:00
2 changed files with 0 additions and 8 deletions

View File

@@ -859,12 +859,6 @@ pub const JSGlobalObject = opaque {
_ = global.reportUncaughtException(global.takeException(proof).asException(global.vm()).?);
}
pub fn onCrash() callconv(.C) void {
jsc.markBinding(@src());
bun.Output.flush();
@panic("A C++ exception occurred");
}
extern fn JSC__Wasm__StreamingCompiler__addBytes(streaming_compiler: *anyopaque, bytes_ptr: [*]const u8, bytes_len: usize) void;
fn getBodyStreamOrBytesForWasmStreaming(
@@ -993,7 +987,6 @@ pub const JSGlobalObject = opaque {
comptime {
@export(&resolve, .{ .name = "Zig__GlobalObject__resolve" });
@export(&reportUncaughtException, .{ .name = "Zig__GlobalObject__reportUncaughtException" });
@export(&onCrash, .{ .name = "Zig__GlobalObject__onCrash" });
@export(&jsc.host_fn.wrap3(getBodyStreamOrBytesForWasmStreaming), .{ .name = "Zig__GlobalObject__getBodyStreamOrBytesForWasmStreaming" });
}
};

View File

@@ -265,7 +265,6 @@ extern "C" void JSCInitialize(const char* envp[], size_t envc, void (*onCrash)(c
std::call_once(jsc_init_flag, [evalMode, envp, envc, onCrash]() {
JSC::Config::enableRestrictedOptions();
std::set_terminate([]() { Zig__GlobalObject__onCrash(); });
WTF::initializeMainThread();
#if ASAN_ENABLED && OS(LINUX)