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:
parent
e3a0c6f15f
commit
87d044ec24
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue