aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/api/FFI.h2
-rw-r--r--src/bun.js/api/ffi.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/api/FFI.h b/src/bun.js/api/FFI.h
index 4763c90a3..c218dc69a 100644
--- a/src/bun.js/api/FFI.h
+++ b/src/bun.js/api/FFI.h
@@ -109,8 +109,6 @@ static EncodedJSValue _FFI_Callback_call(void* ctx, size_t argCount, ZIG_REPR_TY
return_value.asZigRepr = FFI_Callback_call(ctx, argCount, args);
return return_value;
}
-static ZIG_REPR_TYPE arguments[100];
-
#endif
static bool JSVALUE_IS_CELL(EncodedJSValue val) __attribute__((__always_inline__));
diff --git a/src/bun.js/api/ffi.zig b/src/bun.js/api/ffi.zig
index e8deffd3d..269557bcc 100644
--- a/src/bun.js/api/ffi.zig
+++ b/src/bun.js/api/ffi.zig
@@ -1262,6 +1262,8 @@ pub const FFI = struct {
if (this.arg_types.items.len > 0) {
var arg_buf: [512]u8 = undefined;
+ try writer.print(" ZIG_REPR_TYPE arguments[{d}];\n", .{this.arg_types.items.len});
+
arg_buf[0.."arg".len].* = "arg".*;
for (this.arg_types.items) |arg, i| {
const printed = std.fmt.bufPrintIntToSlice(arg_buf["arg".len..], i, 10, .lower, .{});