Skip to content

Commit

Permalink
benchmark: fix first call to URL in useWHATWG
Browse files Browse the repository at this point in the history
PR-URL: #11170
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
  • Loading branch information
joyeecheung committed Feb 9, 2017
1 parent 6af0bfe commit c6b586d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/url/legacy-vs-whatwg-url-parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function useLegacy(n, input) {
}

function useWHATWG(n, input) {
var noDead = url.parse(input);
var noDead = new URL(input);
bench.start();
for (var i = 0; i < n; i += 1) {
noDead = new URL(input);
Expand Down

0 comments on commit c6b586d

Please sign in to comment.