diff options
Diffstat (limited to 'benchmark/misc/punycode.js')
-rw-r--r-- | benchmark/misc/punycode.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/benchmark/misc/punycode.js b/benchmark/misc/punycode.js index 7016fa1171..369adcf17d 100644 --- a/benchmark/misc/punycode.js +++ b/benchmark/misc/punycode.js @@ -55,9 +55,8 @@ function runPunycode(n, val) { } function runICU(n, val) { - var i = 0; bench.start(); - for (; i < n; i++) + for (var i = 0; i < n; i++) usingICU(val); bench.end(n); } @@ -76,6 +75,6 @@ function main({ n, val, method }) { } // fallthrough default: - throw new Error('Unexpected method'); + throw new Error(`Unexpected method "${method}"`); } } |