mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
strict null trouble
This commit is contained in:
@@ -19,7 +19,7 @@ import * as vscode from 'vscode';
|
||||
function es5ClassCompat(target: Function): any {
|
||||
///@ts-ignore
|
||||
function _() { return Reflect.construct(target, arguments, this.constructor); }
|
||||
Object.defineProperty(_, 'name', Object.getOwnPropertyDescriptor(target, 'name'));
|
||||
Object.defineProperty(_, 'name', Object.getOwnPropertyDescriptor(target, 'name')!);
|
||||
///@ts-ignore
|
||||
Object.setPrototypeOf(_, target);
|
||||
///@ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user