diff options
author | 2022-12-30 06:33:22 -0800 | |
---|---|---|
committer | 2022-12-30 06:33:22 -0800 | |
commit | fc6c4bbefbbd59063aae9127f267247f587163bf (patch) | |
tree | 8becb1a69aad421be4829387e0c32f350d4928e6 /test/bun.js/ffi.test.fixture.callback.c | |
parent | 2fc69130858870a21e63e4e67a9844ea3f361b17 (diff) | |
download | bun-fc6c4bbefbbd59063aae9127f267247f587163bf.tar.gz bun-fc6c4bbefbbd59063aae9127f267247f587163bf.tar.zst bun-fc6c4bbefbbd59063aae9127f267247f587163bf.zip |
Upgrade WebKit
Diffstat (limited to 'test/bun.js/ffi.test.fixture.callback.c')
-rw-r--r-- | test/bun.js/ffi.test.fixture.callback.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/bun.js/ffi.test.fixture.callback.c b/test/bun.js/ffi.test.fixture.callback.c index 9c3c088ce..3b9a46577 100644 --- a/test/bun.js/ffi.test.fixture.callback.c +++ b/test/bun.js/ffi.test.fixture.callback.c @@ -1,4 +1,4 @@ -#define JS_GLOBAL_OBJECT (void*)0x0UL +#define JS_GLOBAL_OBJECT (void*)0x0000000000000000ULL #define IS_CALLBACK 1 // This file is part of Bun! // You can find the original source: @@ -103,6 +103,7 @@ typedef void* JSContext; #ifdef IS_CALLBACK +void* callback_ctx; ZIG_REPR_TYPE FFI_Callback_call(void* ctx, size_t argCount, ZIG_REPR_TYPE* args); // We wrap static EncodedJSValue _FFI_Callback_call(void* ctx, size_t argCount, ZIG_REPR_TYPE* args) __attribute__((__always_inline__)); @@ -290,6 +291,6 @@ INJECT_BEFORE; #endif ZIG_REPR_TYPE arguments[1]; arguments[0] = PTR_TO_JSVALUE(arg0).asZigRepr; - return (bool)JSVALUE_TO_BOOL(_FFI_Callback_call((void*)0x0UL, 1, arguments)); + return (bool)JSVALUE_TO_BOOL(_FFI_Callback_call((void*)0x0000000000000000ULL, 1, arguments)); } |