diff options
Diffstat (limited to 'src/bun.js')
| -rw-r--r-- | src/bun.js/test/jest.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bun.js/test/jest.zig b/src/bun.js/test/jest.zig index c0c607622..7e6f59c2e 100644 --- a/src/bun.js/test/jest.zig +++ b/src/bun.js/test/jest.zig @@ -1431,18 +1431,19 @@ pub const DescribeScope = struct { pub threadlocal var module: *DescribeScope = undefined; const CallbackFn = fn ( - this: *DescribeScope, + _: void, ctx: js.JSContextRef, _: js.JSObjectRef, _: js.JSObjectRef, arguments: []const js.JSValueRef, exception: js.ExceptionRef, ) js.JSObjectRef; + fn createCallback(comptime hook: LifecycleHook) CallbackFn { return struct { const this_hook = hook; pub fn run( - _: *DescribeScope, + _: void, ctx: js.JSContextRef, _: js.JSObjectRef, _: js.JSObjectRef, |
