diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /std/testing/bench.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/testing/bench.ts')
-rw-r--r-- | std/testing/bench.ts | 6 |
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 { |