summaryrefslogtreecommitdiff
path: root/benchmark/es/string-repeat.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/es/string-repeat.js')
-rw-r--r--benchmark/es/string-repeat.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/es/string-repeat.js b/benchmark/es/string-repeat.js
index e5bdbb5cc1..9e33e4acf4 100644
--- a/benchmark/es/string-repeat.js
+++ b/benchmark/es/string-repeat.js
@@ -33,7 +33,7 @@ function main({ n, size, encoding, mode }) {
bench.end(n);
break;
default:
- throw new Error('Unexpected method');
+ throw new Error(`Unexpected method "${mode}"`);
}
assert.strictEqual([...str].length, size);