feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to InspectOptions (#6591)

This commit is contained in:
Nayeem Rahman 2020-07-11 05:52:18 +01:00 committed by GitHub
parent 40d081d3d9
commit 5ec41cbcc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 463 additions and 185 deletions

View file

@ -2,7 +2,7 @@
import { gray, green, italic, red, yellow } from "./colors.ts";
import { exit } from "./ops/os.ts";
import { Console, stringifyArgs } from "./web/console.ts";
import { Console, inspectArgs } from "./web/console.ts";
import { stdout } from "./files.ts";
import { exposeForTest } from "./internals.ts";
import { TextEncoder } from "./web/text_encoding.ts";
@ -205,7 +205,7 @@ function reportToConsole(message: TestMessage): void {
for (const { name, error } of failures) {
log(name);
log(stringifyArgs([error!]));
log(inspectArgs([error!]));
log("");
}