diff --git a/src/services/shims.ts b/src/services/shims.ts index e6836d8b9b8..56ab852606c 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 */