We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44a8ff commit b77e72aCopy full SHA for b77e72a
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