@worker-tools/router
Version:
A router for Worker Runtimes such as Cloudflare Workers and Service Workers.
19 lines (16 loc) • 631 B
text/typescript
// deno-lint-ignore-file no-explicit-any
class ErrorEventPolyfill extends Event implements ErrorEvent {
constructor(type: string, eventInitDict?: ErrorEventInit) {
super(type);
this.
}
get message() { return this.
get filename() { return this.
get lineno() { return this.
get colno() { return this.
get error() { return this.
}
export const ErrorEvent: typeof ErrorEventPolyfill = 'ErrorEvent' in self
? (<any>self).ErrorEvent
: ErrorEventPolyfill