electron/spec/fixtures/module/crash.js
foo bar code 4e0e615406 fix: Expose missing Add/RemoveExtraParameter methods to macOS node child processes (#15790)
* Expose missing crash reporter methods in mac node processes

* Crashpad migration
2019-07-29 09:46:35 +09:00

19 lines
554 B
JavaScript

process.crashReporter.start({
productName: 'Zombies',
companyName: 'Umbrella Corporation',
crashesDirectory: process.argv[4],
submitURL: `http://127.0.0.1:${process.argv[2]}`,
extra: {
extra1: 'extra1',
extra2: 'extra2',
_version: process.argv[3]
}
})
if (process.platform !== 'linux') {
process.crashReporter.addExtraParameter('newExtra', 'newExtra')
process.crashReporter.addExtraParameter('removeExtra', 'removeExtra')
process.crashReporter.removeExtraParameter('removeExtra')
}
process.nextTick(() => process.crash())