mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Workaround zig wasm bug
This commit is contained in:
@@ -395,7 +395,8 @@ pub inline fn _debug(comptime fmt: string, args: anytype) void {
|
||||
println(fmt, args);
|
||||
}
|
||||
|
||||
pub noinline fn print(comptime fmt: string, args: anytype) void {
|
||||
// callconv is a workaround for a zig wasm bug?
|
||||
pub noinline fn print(comptime fmt: string, args: anytype) callconv(std.builtin.CallingConvention.Unspecified) void {
|
||||
if (comptime Environment.isWasm) {
|
||||
source.stream.pos = 0;
|
||||
std.fmt.format(source.stream.writer(), fmt, args) catch unreachable;
|
||||
|
||||
Reference in New Issue
Block a user