mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: add exit code to render-process-gone details (#27677)
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
This commit is contained in:
@@ -1392,6 +1392,7 @@ void WebContents::RenderProcessGone(base::TerminationStatus status) {
|
||||
v8::HandleScope handle_scope(isolate);
|
||||
gin_helper::Dictionary details = gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
details.Set("reason", status);
|
||||
details.Set("exitCode", web_contents()->GetCrashedErrorCode());
|
||||
Emit("render-process-gone", details);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user