Merge pull request #11265 from Microsoft/improve-debugObjectHost-shim

Use `new Function`-less access to `this` for debugObjectHost
This commit is contained in:
Nathan Shively-Sanders 2016-09-29 16:29:50 -07:00 committed by GitHub
commit a07a9447bb

View file

@ -16,7 +16,7 @@
/// <reference path='services.ts' />
/* @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 */