Skip to content

Commit

Permalink
fix: minor constants change
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 12, 2024
1 parent d6c44f3 commit 6bda120
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/core/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,8 @@ const wellknownHeaderNames = /** @type {const} */ ([
])

/** @type {Record<typeof wellknownHeaderNames[number]|Lowercase<typeof wellknownHeaderNames[number]>, string>} */
const headerNameLowerCasedRecord = {}

// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.
Object.setPrototypeOf(headerNameLowerCasedRecord, null)
const headerNameLowerCasedRecord = Object.create(null)

for (let i = 0; i < wellknownHeaderNames.length; ++i) {
const key = wellknownHeaderNames[i]
Expand Down

0 comments on commit 6bda120

Please sign in to comment.