Skip to content

Commit a07a944

Browse files
authored
Merge pull request #11265 from Microsoft/improve-debugObjectHost-shim
Use `new Function`-less access to `this` for debugObjectHost
2 parents 1187942 + 4162897 commit a07a944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/shims.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// <reference path='services.ts' />
1717

1818
/* @internal */
19-
let debugObjectHost = new Function("return this")();
19+
let debugObjectHost = (function (this: any) { return this; })();
2020

2121
// We need to use 'null' to interface with the managed side.
2222
/* tslint:disable:no-null-keyword */

0 commit comments

Comments
 (0)