summaryrefslogtreecommitdiff
path: root/benchmark/url/url-searchparams-iteration.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-01-23 13:18:12 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-01 10:49:01 +0100
commit1a8ed225b2ce66451ec34705f0d96438671e0f70 (patch)
treed29ada0145ca0a3615adbd6e440ecfd9d00e7811 /benchmark/url/url-searchparams-iteration.js
parent39ae0b98009e8d235ee7c6d885fd9702a49949ee (diff)
downloadandroid-node-v8-1a8ed225b2ce66451ec34705f0d96438671e0f70.tar.gz
android-node-v8-1a8ed225b2ce66451ec34705f0d96438671e0f70.tar.bz2
android-node-v8-1a8ed225b2ce66451ec34705f0d96438671e0f70.zip
benchmark: (url) refactor
PR-URL: https://github.com/nodejs/node/pull/18320 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/url/url-searchparams-iteration.js')
-rw-r--r--benchmark/url/url-searchparams-iteration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/url/url-searchparams-iteration.js b/benchmark/url/url-searchparams-iteration.js
index 2b13992bdf..cae2ef5df6 100644
--- a/benchmark/url/url-searchparams-iteration.js
+++ b/benchmark/url/url-searchparams-iteration.js
@@ -53,6 +53,6 @@ function main({ method, n }) {
iterator(n);
break;
default:
- throw new Error('Unknown method');
+ throw new Error(`Unknown method ${method}`);
}
}