Skip to main content
Module

x/workers_middleware/utils/aggregate-error.ts

Placeholder for Worker-based middleware solution
Go to Latest
File
// deno-lint-ignore-file no-explicit-anyclass AggregateErrorPolyfill extends Error { #errors: unknown[]; get name() { return 'AggregateError' } get errors() { return [...this.#errors] } constructor(errors: Iterable<unknown>, message = '') { super(message); this.#errors = [...errors]; }}
export const AggregateError: typeof AggregateErrorPolyfill = 'AggregateError' in self ? (<any>self).AggregateError : AggregateErrorPolyfill