diff options
author | 2023-05-20 19:43:44 -0700 | |
---|---|---|
committer | 2023-05-20 22:02:09 -0700 | |
commit | 50bb4749af25efce64bc7e7b1045855f81b6343e (patch) | |
tree | f748b64298b380420526ed8bf36caea6296cc33e /src/bun.js/api | |
parent | ff4df6b6001ac7fd30103b469d0a076021f533c2 (diff) | |
download | bun-50bb4749af25efce64bc7e7b1045855f81b6343e.tar.gz bun-50bb4749af25efce64bc7e7b1045855f81b6343e.tar.zst bun-50bb4749af25efce64bc7e7b1045855f81b6343e.zip |
[internal] Make `JSC.NewFunction` more type safe
Diffstat (limited to 'src/bun.js/api')
-rw-r--r-- | src/bun.js/api/ffi.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/api/ffi.zig b/src/bun.js/api/ffi.zig index ae3e596f1..fe2b50955 100644 --- a/src/bun.js/api/ffi.zig +++ b/src/bun.js/api/ffi.zig @@ -384,7 +384,7 @@ pub const FFI = struct { global, &str, @intCast(u32, function.arg_types.items.len), - compiled.ptr, + bun.cast(JSC.JSHostFunctionPtr, compiled.ptr), false, ); compiled.js_function = cb; @@ -480,7 +480,7 @@ pub const FFI = struct { global, name, @intCast(u32, function.arg_types.items.len), - compiled.ptr, + bun.cast(JSC.JSHostFunctionPtr, compiled.ptr), false, ); compiled.js_function = cb; |