electron/spec/fixtures/apps/crash/fork.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
248 B
JavaScript
Raw Normal View History

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));