From 4162897350209538a64941916aca6235e58daca4 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Thu, 29 Sep 2016 16:14:19 -0700 Subject: [PATCH] Use eval-less access to this for debugObjectHost Originally it was just `debugObjectHost = this as any`, but this breaks --noImplicitThis. Now it's `(function () { return this })()`. --- src/services/shims.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */