From f51189ce9adaf143cb14a9185e011f09e439d6f1 Mon Sep 17 00:00:00 2001 From: Soreine Date: Mon, 7 Nov 2016 15:38:47 +0100 Subject: [PATCH] Fix teardown --- perf/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perf/index.js b/perf/index.js index 5dc8132fa..b69f33ccc 100644 --- a/perf/index.js +++ b/perf/index.js @@ -111,7 +111,8 @@ function runBenchmarks() { }, onComplete() { - global.getScope().benchmark.teardown() + const teardown = global.getScope().benchmark.teardown + if (teardown) teardown() } })) }