Skip to content

Commit 8c8708c

Browse files
RafaelGSStargos
authored andcommittedOct 2, 2024
benchmark: use assert.ok searchparams
PR-URL: #54334 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent b5fbe96 commit 8c8708c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎benchmark/url/url-searchparams-update.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function getMethod(url, property) {
1717

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

2222
const method = getMethod(url, property);
2323

0 commit comments

Comments
 (0)
Please sign in to comment.