diff --git a/src/services/shims.ts b/src/services/shims.ts index 260c80127b5bb..0e56039a19fc2 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -16,7 +16,7 @@ /// /* @internal */ -let debugObjectHost = new Function("return this")(); +let debugObjectHost = (function (this: any) { return this; })(); // We need to use 'null' to interface with the managed side. /* tslint:disable:no-null-keyword */