Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! cli: add --trace-uncaught flag
  • Loading branch information
addaleax committed Oct 18, 2019
commit 6a577ce192bfe83d903eb0a43361ab23bdab0e83
3 changes: 0 additions & 3 deletions src/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,6 @@ Environment::Environment(IsolateData* isolate_data,
async_hooks_.no_force_checks();
}

if (options_->trace_uncaught)
isolate()->SetCaptureStackTraceForUncaughtExceptions(true);

// TODO(joyeecheung): deserialize when the snapshot covers the environment
// properties.
CreateProperties();
Expand Down
2 changes: 2 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ int Environment::InitializeInspector(
void Environment::InitializeDiagnostics() {
isolate_->GetHeapProfiler()->AddBuildEmbedderGraphCallback(
Environment::BuildEmbedderGraph, this);
if (options_->trace_uncaught)
isolate_->SetCaptureStackTraceForUncaughtExceptions(true);

#if defined HAVE_DTRACE || defined HAVE_ETW
InitDTrace(this);
Expand Down