Skip to content

Commit

Permalink
fix browser typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 21, 2023
1 parent 357ecb3 commit 9f6ab16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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);
Expand Down

0 comments on commit 9f6ab16

Please sign in to comment.