src/vs/platform/telemetry/browser/errorTelemetry.ts/ErrorTelemetry/installErrorListeners
class ErrorTelemetry:	protected override installErrorListeners(): void {
		let oldOnError: Function;
		const that = this;
		if (typeof globals.onerror === 'function') {
			oldOnError = globals.onerror;
		}
		globals.onerror = function (message: string, filename: string, line: number, column?: number, e?: any) {
			that._onUncaughtError(message, filename, line, column, e);
			oldOnError?.apply(this, arguments);
		};
		this._disposables.add(toDisposable(() => {
			if (oldOnError) {
				globals.onerror = oldOnError;
			}
		}));
	}