Skip to content

Commit

Permalink
benchmark: fix first call to URL in useWHATWG
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Feb 4, 2017
1 parent 8b04bc9 commit 98166ff
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 98166ff

Please sign in to comment.