mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Merge pull request #11265 from Microsoft/improve-debugObjectHost-shim
Use `new Function`-less access to `this` for debugObjectHost
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user