We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5adf54 commit ca1cd42Copy full SHA for ca1cd42
benchmark/common.js
@@ -38,7 +38,7 @@ class Benchmark {
38
this.config = this.queue[0];
39
40
process.nextTick(() => {
41
- if (process.env.hasOwnProperty('NODE_RUN_BENCHMARK_FN')) {
+ if (Object.hasOwn(process.env, 'NODE_RUN_BENCHMARK_FN')) {
42
fn(this.config);
43
} else {
44
// _run will use fork() to create a new process for each configuration
0 commit comments