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 authored and italoacasas committed Feb 14, 2017
1 parent 20127e0 commit 6d2797b
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 6d2797b

Please sign in to comment.