Skip to content

Commit d9fd870

Browse files
joyeecheungItalo A. Casas
authored andcommitted
benchmark: fix first call to URL in useWHATWG
PR-URL: #11170 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
1 parent f42b08a commit d9fd870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/url/legacy-vs-whatwg-url-parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function useLegacy(n, input) {
3434
}
3535

3636
function useWHATWG(n, input) {
37-
var noDead = url.parse(input);
37+
var noDead = new URL(input);
3838
bench.start();
3939
for (var i = 0; i < n; i += 1) {
4040
noDead = new URL(input);

0 commit comments

Comments
 (0)