diff --git a/src/workerd/io/worker.c++ b/src/workerd/io/worker.c++ index 5519855b5b1..521c254ea2d 100644 --- a/src/workerd/io/worker.c++ +++ b/src/workerd/io/worker.c++ @@ -1832,6 +1832,12 @@ Worker::Worker(kj::Own scriptParam, impl->permanentException); } }); + + // Reset this back to its default after startup execution + // Leaving it on comes at the expense of collecting stack traces for all thrown exceptions + if (script->isolate->impl->inspector == kj::none) { + lock.v8Isolate->SetCaptureStackTraceForUncaughtExceptions(false); + } }); }); }