Skip to content

Commit 28b95a5

Browse files
Trottruyadorno
authored andcommitted
benchmark: use Object.hasOwn() instead of hasOwnProperty()
PR-URL: #41769 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 86644b9 commit 28b95a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/http/check_invalid_header_char.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const bench = common.createBenchmark(main, {
5555

5656
function main({ n, input }) {
5757
let inputs = [input];
58-
if (groupedInputs.hasOwnProperty(input)) {
58+
if (Object.hasOwn(groupedInputs, input)) {
5959
inputs = groupedInputs[input];
6060
}
6161

0 commit comments

Comments
 (0)