From 9f6ab1694753df1f01c95bf00531132a3cfb7af3 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 21 Nov 2023 18:51:45 +0900 Subject: [PATCH] fix browser typing --- expect/_inspect_args.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/expect/_inspect_args.ts b/expect/_inspect_args.ts index 3aafc40c37d4f..95af662fd7d2f 100644 --- a/expect/_inspect_args.ts +++ b/expect/_inspect_args.ts @@ -1,10 +1,12 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +// deno-lint-ignore-file export function inspectArgs(args: unknown[]): string { return args.map(inspectArg).join(", "); } export function inspectArg(arg: unknown): string { + const { Deno } = globalThis as any; return typeof Deno !== "undefined" && Deno.inspect ? Deno.inspect(arg) : String(arg);