MCPcopy Create free account
hub / github.com/W4G1/multithreading / ErrorEvent

Class ErrorEvent

src/node/polyfill.ts:12–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11// Polyfill ErrorEvent globally as it is used in both contexts
12globalThis.ErrorEvent = class ErrorEvent extends Event {
13 public message: string;
14 public filename: string;
15 public lineno: number;
16 public colno: number;
17 public error: any;
18
19 constructor(type: string, init?: ErrorEventInit) {
20 super(type, init);
21 this.message = init?.message || "";
22 this.filename = init?.filename || "";
23 this.lineno = init?.lineno || 0;
24 this.colno = init?.colno || 0;
25 this.error = init?.error || null;
26 }
27};
28
29/**
30 * Main Thread Implementation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected