diff --git a/src/bun.js/ConsoleObject.zig b/src/bun.js/ConsoleObject.zig index b9a24edf187b2f..695fa15bb4eb37 100644 --- a/src/bun.js/ConsoleObject.zig +++ b/src/bun.js/ConsoleObject.zig @@ -1096,6 +1096,8 @@ pub const Formatter = struct { MapIterator, SetIterator, Set, + Generator, + AsyncGenerator, BigInt, Symbol, @@ -1330,6 +1332,8 @@ pub const Formatter = struct { .MapIterator => .MapIterator, .SetIterator => .SetIterator, .WeakSet, JSValue.JSType.Set => .Set, + .Generator => .Generator, + .AsyncGenerator => .AsyncGenerator, .JSDate => .JSON, .JSPromise => .Promise, @@ -2820,6 +2824,12 @@ pub const Formatter = struct { } writer.writeAll("}"); }, + .Generator => { + writer.writeAll("Object [Generator] {}"); + }, + .AsyncGenerator => { + writer.writeAll("Object [AsyncGenerator] {}"); + }, .SetIterator => { const prev_quote_strings = this.quote_strings; this.quote_strings = true;