mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
remove the error print. the problem is it calls printErrorlikeObject directly on the writer without indenting.
This commit is contained in:
@@ -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 ---");
|
||||
|
||||
@@ -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 ---
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user