strict null trouble

This commit is contained in:
Johannes Rieken
2019-02-08 15:30:43 +01:00
parent 815063890b
commit 8bd8c6f688

View File

@@ -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