diff options
Diffstat (limited to 'benchmark/url/legacy-vs-whatwg-url-parse.js')
-rw-r--r-- | benchmark/url/legacy-vs-whatwg-url-parse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/url/legacy-vs-whatwg-url-parse.js b/benchmark/url/legacy-vs-whatwg-url-parse.js index ca7a48466c7..64533e67e4a 100644 --- a/benchmark/url/legacy-vs-whatwg-url-parse.js +++ b/benchmark/url/legacy-vs-whatwg-url-parse.js @@ -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); |