diff options
author | 2021-05-01 01:28:40 -0700 | |
---|---|---|
committer | 2021-05-01 01:28:40 -0700 | |
commit | 3050d5a1a4def6fe90b62854e2252e308f5f708a (patch) | |
tree | 508eb5c8033779b92650f6d129251c1b9a5199b8 /src/js_printer.zig | |
parent | 7005f4c43c8fa403b85f14afcf4c9b5a4c8c4cbc (diff) | |
download | bun-3050d5a1a4def6fe90b62854e2252e308f5f708a.tar.gz bun-3050d5a1a4def6fe90b62854e2252e308f5f708a.tar.zst bun-3050d5a1a4def6fe90b62854e2252e308f5f708a.zip |
Assorted bugfixes but the next step really is porting tests and fixing
Former-commit-id: f59ec8d6c0c95217c1dc24e2ed2dc49aed122a68
Diffstat (limited to 'src/js_printer.zig')
-rw-r--r-- | src/js_printer.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js_printer.zig b/src/js_printer.zig index beed8162d..50114e670 100644 --- a/src/js_printer.zig +++ b/src/js_printer.zig @@ -1941,6 +1941,7 @@ pub fn NewPrinter(comptime ascii_only: bool) type { } const name = s.func.name orelse std.debug.panic("Internal error: expected func to have a name ref\n{s}", .{s}); const nameRef = name.ref orelse std.debug.panic("Internal error: expected func to have a name\n{s}", .{s}); + p.printSpace(); p.printSymbol(nameRef); p.printFunc(s.func); p.printNewline(); @@ -1951,7 +1952,7 @@ pub fn NewPrinter(comptime ascii_only: bool) type { if (s.is_export) { p.print("export "); } - p.print("class"); + p.print("class "); p.printSymbol(s.class.class_name.?.ref.?); p.printClass(s.class); p.printNewline(); |