Skip to content

Commit

Permalink
fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx committed Feb 29, 2024
1 parent 75fa334 commit 1cf6928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/core/is-valid-header-char.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ group(`isValidHeaderChar# ${html}`, () => {
return headerCharRegex.exec(html) === null
})
bench('charCodeAt', () => {
return charCodeAtApproach(html) === true
return charCodeAtApproach(html)
})
bench('isValidHeaderChar', () => {
return isValidHeaderChar(html) === true
return isValidHeaderChar(html)
})
})

Expand Down

0 comments on commit 1cf6928

Please sign in to comment.