diff options
Diffstat (limited to 'benchmark/url/legacy-vs-whatwg-url-get-prop.js')
-rw-r--r-- | benchmark/url/legacy-vs-whatwg-url-get-prop.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/url/legacy-vs-whatwg-url-get-prop.js b/benchmark/url/legacy-vs-whatwg-url-get-prop.js index 59bb4724f4..16bcd22632 100644 --- a/benchmark/url/legacy-vs-whatwg-url-get-prop.js +++ b/benchmark/url/legacy-vs-whatwg-url-get-prop.js @@ -26,7 +26,7 @@ function useLegacy(data) { // It's necessary to assign the values to an object // to avoid loop invariant code motion. bench.start(); - for (var i = 0; i < len; i++) { + for (let i = 0; i < len; i++) { const obj = data[i]; noDead.protocol = obj.protocol; noDead.auth = obj.auth; @@ -55,7 +55,7 @@ function useWHATWG(data) { }; const len = data.length; bench.start(); - for (var i = 0; i < len; i++) { + for (let i = 0; i < len; i++) { const obj = data[i]; noDead.protocol = obj.protocol; noDead.auth = `${obj.username}:${obj.password}`; |