Merge pull request #11265 from Microsoft/improve-debugObjectHost-shim
Use `new Function`-less access to `this` for debugObjectHost
This commit is contained in:
commit
a07a9447bb
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue