Skip to content
Permalink
Browse files

Fixing default parameters of runBenchmarks (denoland#229)

  • Loading branch information...
zekth authored and ry committed Mar 4, 2019
1 parent b4fba9f commit facc8ce9d228148353c407869a32cc4295b9a264
Showing with 2 additions and 2 deletions.
  1. +2 −2 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<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)

0 comments on commit facc8ce

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.