rm for ... in
This commit is contained in:
9
bench.ce
9
bench.ce
@@ -441,11 +441,10 @@ function run_benchmarks(package_name, specific_bench) {
|
||||
if (is_function(bench_mod)) {
|
||||
benches.push({name: 'main', fn: bench_mod})
|
||||
} else if (is_object(bench_mod)) {
|
||||
for (var k in bench_mod) {
|
||||
if (is_function(bench_mod[k])) {
|
||||
arrfor(array(bench_mod), function(k) {
|
||||
if (is_function(bench_mod[k]))
|
||||
benches.push({name: k, fn: bench_mod[k]})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if (length(benches) > 0) {
|
||||
@@ -474,7 +473,7 @@ function run_benchmarks(package_name, specific_bench) {
|
||||
file_result.benchmarks.push(error_result)
|
||||
pkg_result.total++
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
log.console(` Error loading ${f}: ${e}`)
|
||||
|
||||
Reference in New Issue
Block a user