Skip to content

Commit

Permalink
benchmark: use assert.ok searchparams
Browse files Browse the repository at this point in the history
PR-URL: #54334
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Matthew Aitken <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
  • Loading branch information
RafaelGSS committed Aug 21, 2024
1 parent c640a2f commit c6544ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/url/url-searchparams-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getMethod(url, property) {

function main({ searchParams, property, n }) {
const url = new URL('https://nodejs.org');
if (searchParams === 'true') assert(url.searchParams);
if (searchParams === 'true') assert.ok(url.searchParams);

const method = getMethod(url, property);

Expand Down

0 comments on commit c6544ff

Please sign in to comment.