Skip to content

Commit 4162897

Browse files
committed
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 })()`.
1 parent 6efa8bf commit 4162897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/shims.ts

Lines changed: 1 addition & 1 deletion
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)