diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2017-02-04 22:57:11 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-02-09 17:57:15 +0300 |
commit | c6b586de33b6ac208d3de83b304bfe50f13a4292 (patch) | |
tree | 5ea667675d887240b42823087863f0e1bd2b8dec /benchmark | |
parent | 6af0bfe1a0006511325bf17bf36da6f36721d10e (diff) |
benchmark: fix first call to URL in useWHATWG
PR-URL: https://github.com/nodejs/node/pull/11170
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'benchmark')
-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); |