Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js')
-rw-r--r--benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js b/benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js
index 3490782a1bf..8fe3e546f07 100644
--- a/benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js
+++ b/benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js
@@ -33,7 +33,7 @@ function useWHATWG(n, input, prop) {
function main({ type, n, method }) {
const input = inputs[type];
if (!input) {
- throw new Error('Unknown input type');
+ throw new Error(`Unknown input type "${type}"`);
}
switch (method) {
@@ -44,6 +44,6 @@ function main({ type, n, method }) {
useWHATWG(n, input);
break;
default:
- throw new Error('Unknown method');
+ throw new Error(`Unknown method ${method}`);
}
}