Skip to content

Use new Function-less access to this for debugObjectHost#11265

Merged
sandersn merged 1 commit into
masterfrom
improve-debugObjectHost-shim
Sep 29, 2016
Merged

Use new Function-less access to this for debugObjectHost#11265
sandersn merged 1 commit into
masterfrom
improve-debugObjectHost-shim

Conversation

@sandersn
Copy link
Copy Markdown
Member

Fixes a comment on the original PR #9580.

Originally it was just debugObjectHost = this as any, but this breaks --noImplicitThis. So #9580 changed it to (new Function("return this"))(). Now it's (function () { return this })().

Originally it was just `debugObjectHost = this as any`, but this breaks
--noImplicitThis. Now it's `(function () { return this })()`.
@sandersn
Copy link
Copy Markdown
Member Author

@vladima can you take a look?

@sandersn sandersn merged commit a07a944 into master Sep 29, 2016
@sandersn sandersn deleted the improve-debugObjectHost-shim branch September 29, 2016 23:29
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants