build: add import/order eslint rule (#44085)
* build: add import/order eslint rule * chore: run lint:js --fix
This commit is contained in:
parent
684e345f68
commit
122685194a
208 changed files with 794 additions and 441 deletions
4
spec/fixtures/module/fork_ping.js
vendored
4
spec/fixtures/module/fork_ping.js
vendored
|
@ -1,10 +1,12 @@
|
|||
const childProcess = require('node:child_process');
|
||||
const path = require('node:path');
|
||||
|
||||
process.on('uncaughtException', function (error) {
|
||||
process.send(error.stack);
|
||||
});
|
||||
|
||||
const child = require('node:child_process').fork(path.join(__dirname, '/ping.js'));
|
||||
const child = childProcess.fork(path.join(__dirname, '/ping.js'));
|
||||
|
||||
process.on('message', function (msg) {
|
||||
child.send(msg);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue