1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00

Fixing default parameters of runBenchmarks (denoland/deno_std#229)

Original: facc8ce9d2
This commit is contained in:
Vincent LE GOFF 2019-03-04 17:02:49 +01:00 committed by Ryan Dahl
parent e3a0c6f15f
commit 87d044ec24

View file

@ -91,9 +91,9 @@ export function bench(
/** Runs all registered and non-skipped benchmarks serially. */
export async function runBenchmarks({
only = /[^\s]+/,
only = /[^\s]/,
skip = /^\s*$/
}: BenchmarkRunOptions): Promise<void> {
}: BenchmarkRunOptions = {}): Promise<void> {
// Filtering candidates by the "only" and "skip" constraint
const benchmarks: Array<BenchmarkDefinition> = candidates.filter(
({ name }) => only.test(name) && !skip.test(name)