"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

//#region src/primordials/error.ts
/**
* @file Safe references to `Error` and its subclass constructors, plus V8's
*   stack-trace API. `Error.isError` is ES2025; `captureStackTrace` /
*   `prepareStackTrace` / `stackTraceLimit` are V8 extensions absent on
*   JavaScriptCore and SpiderMonkey. Each is typed `Function | undefined` so
*   non-V8 importers stay safe.
*/
const ErrorCtor = Error;
const AggregateErrorCtor = AggregateError;
const EvalErrorCtor = EvalError;
const RangeErrorCtor = RangeError;
const ReferenceErrorCtor = ReferenceError;
const SyntaxErrorCtor = SyntaxError;
const TypeErrorCtor = TypeError;
const URIErrorCtor = URIError;
const ErrorIsError = Error.isError;
const ErrorCaptureStackTrace = Error.captureStackTrace;
const ErrorPrepareStackTrace = Error.prepareStackTrace;
const _stackTraceLimitGetter = (() => {
	const getter = Error.__lookupGetter__?.("stackTraceLimit");
	/* c8 ignore start */
	if (typeof getter === "function") return () => getter.call(Error);
	/* c8 ignore stop */
})();
function ErrorStackTraceLimit() {
	/* c8 ignore start */
	if (_stackTraceLimitGetter) return _stackTraceLimitGetter();
	return Error.stackTraceLimit;
	/* c8 ignore stop */
}

//#endregion
exports.AggregateErrorCtor = AggregateErrorCtor;
exports.ErrorCaptureStackTrace = ErrorCaptureStackTrace;
exports.ErrorCtor = ErrorCtor;
exports.ErrorIsError = ErrorIsError;
exports.ErrorPrepareStackTrace = ErrorPrepareStackTrace;
exports.ErrorStackTraceLimit = ErrorStackTraceLimit;
exports.EvalErrorCtor = EvalErrorCtor;
exports.RangeErrorCtor = RangeErrorCtor;
exports.ReferenceErrorCtor = ReferenceErrorCtor;
exports.SyntaxErrorCtor = SyntaxErrorCtor;
exports.TypeErrorCtor = TypeErrorCtor;
exports.URIErrorCtor = URIErrorCtor;