mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
js: de-class-ify node:tls.TLSSocket (#18058)
This commit is contained in:
@@ -1649,6 +1649,8 @@ JSC_DEFINE_HOST_FUNCTION(Bun::jsFunctionMakeErrorWithCode, (JSC::JSGlobalObject
|
||||
return JSC::JSValue::encode(createError(globalObject, ErrorCode::ERR_SOCKET_CLOSED, "Socket is closed"_s));
|
||||
case ErrorCode::ERR_SOCKET_CLOSED_BEFORE_CONNECTION:
|
||||
return JSC::JSValue::encode(createError(globalObject, ErrorCode::ERR_SOCKET_CLOSED_BEFORE_CONNECTION, "Socket closed before the connection was established"_s));
|
||||
case ErrorCode::ERR_TLS_RENEGOTIATION_DISABLED:
|
||||
return JSC::JSValue::encode(createError(globalObject, ErrorCode::ERR_TLS_RENEGOTIATION_DISABLED, "TLS session renegotiation disabled for this socket"_s));
|
||||
|
||||
default: {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user