Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Nov 25, 2024
1 parent a8da2e0 commit 5c8381a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/generate-js2native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export function getJS2NativeZig(gs2NativeZigPath: string) {
})}(global: *JSC.JSGlobalObject, call_frame: *JSC.CallFrame) callconv(JSC.conv) JSC.JSValue {`,
`
const function = @import(${JSON.stringify(path.relative(path.dirname(gs2NativeZigPath), x.filename))});
return @call(.always_inline, function.${x.symbol_target}, .{global, call_frame});`,
return @call(.always_inline, JSC.toJSHostFunction(function.${x.symbol_target}), .{global, call_frame});`,
"}",
]),
].join("\n");
Expand Down

0 comments on commit 5c8381a

Please sign in to comment.