| 10 | |
| 11 | // Polyfill ErrorEvent globally as it is used in both contexts |
| 12 | globalThis.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 |
nothing calls this directly
no outgoing calls
no test coverage detected