electron/spec/fixtures/apps/crash/fork.js
Samuel Attard 27c38bdead
build: add import/order eslint rule (#44107)
build: add import/order eslint rule (#44085)

* build: add import/order eslint rule

* chore: run lint:js --fix
2024-10-02 21:36:15 -07:00

6 lines
248 B
JavaScript

const childProcess = require('node:child_process');
const path = require('node:path');
const crashPath = path.join(__dirname, 'node-crash.js');
const child = childProcess.fork(crashPath, { silent: true });
child.on('exit', () => process.exit(0));