js: de-class-ify node:tls.TLSSocket (#18058)

This commit is contained in:
Meghan Denny
2025-03-11 15:37:50 -08:00
committed by GitHub
parent fdd750e4b5
commit 6d0739f7d9
7 changed files with 190 additions and 202 deletions

View File

@@ -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;