Skip to content

Commit 8c8708c

Browse files
RafaelGSStargos
authored andcommitted
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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function getMethod(url, property) {
1717

1818
functionmain({ searchParams, property, n }){
1919
consturl=newURL('https://nodejs.org');
20-
if(searchParams==='true')assert(url.searchParams);
20+
if(searchParams==='true')assert.ok(url.searchParams);
2121

2222
constmethod=getMethod(url,property);
2323

0 commit comments

Comments
 (0)