Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2017-02-04 22:57:11 +0300
committerItalo A. Casas <me@italoacasas.com>2017-02-14 19:52:22 +0300
commit6d2797bd8043d8820b49bedf6827d75223e5b496 (patch)
treee7eb21d1dae76030339deac6bc6ffa3e7bc16a08 /benchmark
parent20127e0c0ac97968ef0104d19ffdcc5545dc98d5 (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.js2
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);