🎨
This commit is contained in:
parent
795b674996
commit
43ef4faf79
3 changed files with 5 additions and 5 deletions
|
@ -62,10 +62,10 @@ int NodeMain(int argc, char *argv[]) {
|
||||||
#endif
|
#endif
|
||||||
process.SetMethod("crash", &AtomBindings::Crash);
|
process.SetMethod("crash", &AtomBindings::Crash);
|
||||||
|
|
||||||
auto crashReporter = mate::Dictionary::CreateEmpty(gin_env.isolate());
|
// Setup process.crashReporter.start in child node processes
|
||||||
crashReporter.SetMethod("start",
|
auto reporter = mate::Dictionary::CreateEmpty(gin_env.isolate());
|
||||||
&crash_reporter::CrashReporter::StartInstance);
|
reporter.SetMethod("start", &crash_reporter::CrashReporter::StartInstance);
|
||||||
process.Set("crashReporter", crashReporter);
|
process.Set("crashReporter", reporter);
|
||||||
|
|
||||||
node::LoadEnvironment(env);
|
node::LoadEnvironment(env);
|
||||||
|
|
||||||
|
|
|
@ -116,5 +116,4 @@ void CrashReporter::StartInstance(const mate::Dictionary& options) {
|
||||||
false, extra_parameters);
|
false, extra_parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace crash_reporter
|
} // namespace crash_reporter
|
||||||
|
|
|
@ -31,6 +31,7 @@ class CrashReporter {
|
||||||
bool upload_to_server,
|
bool upload_to_server,
|
||||||
bool skip_system_crash_handler,
|
bool skip_system_crash_handler,
|
||||||
const StringMap& extra_parameters);
|
const StringMap& extra_parameters);
|
||||||
|
|
||||||
virtual std::vector<CrashReporter::UploadReportResult> GetUploadedReports(
|
virtual std::vector<CrashReporter::UploadReportResult> GetUploadedReports(
|
||||||
const base::FilePath& crashes_dir);
|
const base::FilePath& crashes_dir);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue