summaryrefslogtreecommitdiff
path: root/benchmark/es/string-concatenations.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/es/string-concatenations.js')
-rw-r--r--benchmark/es/string-concatenations.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/es/string-concatenations.js b/benchmark/es/string-concatenations.js
index a40b7fa8c3..72fb7f9969 100644
--- a/benchmark/es/string-concatenations.js
+++ b/benchmark/es/string-concatenations.js
@@ -16,7 +16,6 @@ const configs = {
const bench = common.createBenchmark(main, configs);
-
function main({ n, mode }) {
const str = 'abc';
const num = 123;
@@ -63,7 +62,7 @@ function main({ n, mode }) {
bench.end(n);
break;
default:
- throw new Error('Unexpected method');
+ throw new Error(`Unexpected method "${mode}"`);
}
return string;