Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-01-30 09:36:19 +0300
committerGitHub <noreply@github.com>2022-01-30 09:36:19 +0300
commit0018ee1f687f01d477d6a0f4d4657a1220f27d61 (patch)
tree03c19cd570fa8f2d1ac12b6825072aa4c62f4b6b /benchmark
parent6edd9a58513f9c392d760d39c526147c0b2e4544 (diff)
benchmark: replace hasOwnProperty() with Object.hasOwn()
PR-URL: https://github.com/nodejs/node/pull/41724 Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/common.js b/benchmark/common.js
index dbe69e31ad5..88cb8a560f4 100644
--- a/benchmark/common.js
+++ b/benchmark/common.js
@@ -38,7 +38,7 @@ class Benchmark {
this.config = this.queue[0];
process.nextTick(() => {
- if (process.env.hasOwnProperty('NODE_RUN_BENCHMARK_FN')) {
+ if (Object.hasOwn(process.env, 'NODE_RUN_BENCHMARK_FN')) {
fn(this.config);
} else {
// _run will use fork() to create a new process for each configuration