diff options
Diffstat (limited to 'benchmark/url/legacy-vs-whatwg-url-serialize.js')
-rw-r--r-- | benchmark/url/legacy-vs-whatwg-url-serialize.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/url/legacy-vs-whatwg-url-serialize.js b/benchmark/url/legacy-vs-whatwg-url-serialize.js index e4c821cb2e2..d6d8c8a4e71 100644 --- a/benchmark/url/legacy-vs-whatwg-url-serialize.js +++ b/benchmark/url/legacy-vs-whatwg-url-serialize.js @@ -15,7 +15,7 @@ function useLegacy(data) { const len = data.length; var noDead = url.format(obj); bench.start(); - for (var i = 0; i < len; i++) { + for (let i = 0; i < len; i++) { noDead = data[i].toString(); } bench.end(len); @@ -27,7 +27,7 @@ function useWHATWG(data) { const len = data.length; var noDead = obj.toString(); bench.start(); - for (var i = 0; i < len; i++) { + for (let i = 0; i < len; i++) { noDead = data[i].toString(); } bench.end(len); |