From 6443e4aed16868c17111a56634aa733211430f46 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 10 Mar 2020 16:08:58 +0000 Subject: refactor: Cleanup options object parameters (#4296) --- std/testing/bench.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/testing/bench.ts') diff --git a/std/testing/bench.ts b/std/testing/bench.ts index c76c1bd7c..5cec3ea39 100644 --- a/std/testing/bench.ts +++ b/std/testing/bench.ts @@ -171,7 +171,7 @@ export async function runBenchmarks({ /** Runs specified benchmarks if the enclosing script is main. */ export async function runIfMain( meta: ImportMeta, - opts?: BenchmarkRunOptions + opts: BenchmarkRunOptions = {} ): Promise { if (meta.main) { return runBenchmarks(opts); -- cgit v1.2.3