Skip to content

Commit 50dd86e

Browse files
committed
benchmark: allow boolean option values
Change createBenchmark to also accept booleans.
1 parent 0c1fb98 commit 50dd86e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class Benchmark {
140140
const values = options[key];
141141

142142
for (const value of values) {
143-
if (typeof value !== 'number' && typeof value !== 'string') {
143+
if (typeof value !== 'number' && typeof value !== 'string' && typeof value !== 'boolean') {
144144
throw new TypeError(
145145
`configuration "${key}" had type ${typeof value}`);
146146
}

0 commit comments

Comments
 (0)