electron/spec/fixtures/apps/crash/node-extra-args.js
Milan Burda d78f37ec8f
refactor: use node scheme imports in spec (#38487)
Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-06-15 10:42:27 -04:00

9 lines
273 B
JavaScript

const path = require('node:path');
const childProcess = require('node:child_process');
process.on('message', function () {
process.send(process.argv);
});
// Allow time to send args, then crash the app.
setTimeout(() => process.nextTick(() => process.crash()), 10000);