remove the error print. the problem is it calls printErrorlikeObject directly on the writer without indenting.

This commit is contained in:
pfg
2025-07-15 20:31:02 -07:00
parent e520accfd2
commit b6896fbd44
2 changed files with 0 additions and 14 deletions

View File

@@ -2,6 +2,5 @@ console.log("--- begin ---");
console.log({
a: "a",
multiline: 'pub fn main() !void {\n std.log.info("Hello, {s}", .{name});\n}',
error: new Error("Hello, world!"),
});
console.log("--- end ---");

View File

@@ -18,19 +18,6 @@ test("console.log output", async () => {
multiline: "pub fn main() !void {
std.log.info(\\"Hello, {s}\\", .{name});
}",
error: 1 | console.log("--- begin ---");
2 | console.log({
3 | a: "a",
4 | multiline: 'pub fn main() !void {\\n std.log.info("Hello, {s}", .{name});\\n}',
5 | error: new Error("Hello, world!"),
^
error: Hello, world!
at /Users/pfg/Dev/Node/bun/test/js/bun/test/printing/consolelog.fixture.ts:5:10
at loadAndEvaluateModule (7:44)
at asyncFunctionResume (9:85)
at promiseReactionJobWithoutPromiseUnwrapAsyncContext (14:20)
at promiseReactionJob (31:60)
,
}
--- end ---
"