Skip to content

Commit d6b0a82

Browse files
committed
benchmark: prefer node import syntax for built-in child_process
1 parent 3270cef commit d6b0a82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/compare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const { spawn, fork } = require('child_process');
3+
const { spawn, fork } = require('node:child_process');
44
const { inspect } = require('util');
55
const path = require('path');
66
const CLI = require('./_cli.js');

benchmark/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const path = require('path');
4-
const { spawn, fork } = require('child_process');
4+
const { spawn, fork } = require('node:child_process');
55
const CLI = require('./_cli.js');
66

77
const cli = new CLI(`usage: ./node run.js [options] [--] <category> ...

0 commit comments

Comments
 (0)