mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
Fix warning
This commit is contained in:
@@ -266,7 +266,7 @@ const Handlers = struct {
|
||||
.{ "onHandshake", "handshake" },
|
||||
};
|
||||
inline for (pairs) |pair| {
|
||||
if (opts.getTruthy(globalObject, pair.@"1")) |callback_value| {
|
||||
if (opts.getTruthyComptime(globalObject, pair.@"1")) |callback_value| {
|
||||
if (!callback_value.isCell() or !callback_value.isCallable(globalObject.vm())) {
|
||||
exception.* = JSC.toInvalidArguments(comptime std.fmt.comptimePrint("Expected \"{s}\" callback to be a function", .{pair.@"1"}), .{}, globalObject).asObjectRef();
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user