| ... | @@ -61,6 +61,11 @@ pub const StackTrace = struct { | ... | @@ -61,6 +61,11 @@ pub const StackTrace = struct { |
| 61 | options: std.fmt.FormatOptions, | 61 | options: std.fmt.FormatOptions, |
| 62 | writer: anytype, | 62 | writer: anytype, |
| 63 | ) !void { | 63 | ) !void { |
| | 64 | // TODO: re-evaluate whether to use format() methods at all. |
| | 65 | // Until then, avoid an error when using GeneralPurposeAllocator with WebAssembly |
| | 66 | // where it tries to call detectTTYConfig here. |
| | 67 | if (builtin.os.tag == .freestanding) return; |
| | 68 | |
| 64 | _ = fmt; | 69 | _ = fmt; |
| 65 | _ = options; | 70 | _ = options; |
| 66 | var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); | 71 | var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); |