summaryrefslogtreecommitdiff
path: root/std/testing/bench.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/testing/bench.ts')
-rw-r--r--std/testing/bench.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/std/testing/bench.ts b/std/testing/bench.ts
index a5e6490ac..366d6ec1b 100644
--- a/std/testing/bench.ts
+++ b/std/testing/bench.ts
@@ -1,8 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { deepAssign } from "../_util/deep_assign.ts";
-const { noColor } = Deno;
-
interface BenchmarkClock {
start: number;
stop: number;
@@ -98,11 +96,11 @@ export class BenchmarkRunError extends Error {
}
function red(text: string): string {
- return noColor ? text : `\x1b[31m${text}\x1b[0m`;
+ return Deno.noColor ? text : `\x1b[31m${text}\x1b[0m`;
}
function blue(text: string): string {
- return noColor ? text : `\x1b[34m${text}\x1b[0m`;
+ return Deno.noColor ? text : `\x1b[34m${text}\x1b[0m`;
}
function verifyOr1Run(runs?: number): number {