crash.js 317 B

1234567891011121314
  1. process.crashReporter.start({
  2. productName: 'Zombies',
  3. companyName: 'Umbrella Corporation',
  4. crashesDirectory: process.argv[4],
  5. submitURL: `http://127.0.0.1:${process.argv[2]}`,
  6. extra: {
  7. extra1: 'extra1',
  8. extra2: 'extra2',
  9. _version: process.argv[3]
  10. }
  11. })
  12. process.nextTick(() => process.crash())