Skip to content

Commit

Permalink
Compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
heimskr committed Feb 3, 2025
1 parent aebbe91 commit 1f0a8a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bun.js/api/bun/udp_socket.zig
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,12 @@ pub const UDPSocket = struct {

fn throwEBADFIfNecessary(this: *This, globalThis: *JSGlobalObject) bun.JSError!void {
if (this.closed) {
return globalThis.throwValue(bun.sys.Error.fromCode(.BADF, .setsockopt).toJS(globalThis));
return globalThis.throwValue(bun.sys.Error.fromCode(.BADF, .setsockopt).toJSC(globalThis));
}
}

fn throwEINVAL(globalThis: *JSGlobalObject) bun.JSError!void {
return globalThis.throwValue(bun.sys.Error.fromCode(.INVAL, .setsockopt).toJS(globalThis));
return globalThis.throwValue(bun.sys.Error.fromCode(.INVAL, .setsockopt).toJSC(globalThis));
}

pub fn setBroadcast(this: *This, globalThis: *JSGlobalObject, callframe: *CallFrame) bun.JSError!JSValue {
Expand Down Expand Up @@ -450,7 +450,7 @@ pub const UDPSocket = struct {

var addr: std.posix.sockaddr.storage = undefined;
if (!parseAddr(this, globalThis, JSC.jsNumber(0), arguments[0], &addr)) {
return globalThis.throwValue(bun.sys.Error.fromCode(.INVAL, .setsockopt).toJS(globalThis));
return globalThis.throwValue(bun.sys.Error.fromCode(.INVAL, .setsockopt).toJSC(globalThis));
}

var interface: std.posix.sockaddr.storage = undefined;
Expand Down

0 comments on commit 1f0a8a6

Please sign in to comment.