mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
benchmark: use Object.hasOwn() instead of hasOwnProperty()
PR-URL: https://github.com/nodejs/node/pull/41769 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
253f934462
commit
96e81df24a
1 file changed
+1
-1
@@ -55,7 +55,7 @@ const bench = common.createBenchmark(main, {
|
||||
|
||||
function main({ n, input }) {
|
||||
let inputs = [input];
|
||||
if (groupedInputs.hasOwnProperty(input)) {
|
||||
if (Object.hasOwn(groupedInputs, input)) {
|
||||
inputs = groupedInputs[input];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user