From 87d044ec2405c2ff5bd18e9b7876156283a3d5ff Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Mon, 4 Mar 2019 17:02:49 +0100 Subject: Fixing default parameters of runBenchmarks (denoland/deno_std#229) Original: https://github.com/denoland/deno_std/commit/facc8ce9d228148353c407869a32cc4295b9a264 --- benching/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benching/mod.ts b/benching/mod.ts index 61df5c06b..4d2f5d41e 100644 --- a/benching/mod.ts +++ b/benching/mod.ts @@ -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 { +}: BenchmarkRunOptions = {}): Promise { // Filtering candidates by the "only" and "skip" constraint const benchmarks: Array = candidates.filter( ({ name }) => only.test(name) && !skip.test(name) -- cgit v1.2.3