Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2016

Conversation

sandersn
Copy link
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
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