1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 01:50:06 +02:00

Fix teardown

This commit is contained in:
Soreine
2016-11-07 15:38:47 +01:00
parent 1424103975
commit f51189ce9a

View File

@@ -111,7 +111,8 @@ function runBenchmarks() {
},
onComplete() {
global.getScope().benchmark.teardown()
const teardown = global.getScope().benchmark.teardown
if (teardown) teardown()
}
}))
}