Skip to content
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

fix(root): find global context (window/self/global) in a more safe way #1933

Merged
merged 1 commit into from
Sep 15, 2016

Conversation

jayphelps
Copy link
Member

Fixes #1930

Unfortunately this isn't something we can really unit test AFAIK. It's pretty meta.

The objectTypes stuffs appeared to be a left over from earlier refactors cause none of these should ever be a function.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 97.113% when pulling 7d3dd70 on jayphelps:root into f63dde9 on ReactiveX:master.

@jayphelps
Copy link
Member Author

ugh...remove code and even add one test and coverage goes down...wtf..

@kwonoj
Copy link
Member

kwonoj commented Sep 9, 2016

Seems coveralls complaining about missing coverage of throwing out if root nonexists. :/

https://coveralls.io/builds/7822965/source?filename=src%2Futil%2Froot.ts#L24

@jayphelps
Copy link
Member Author

I can remove it....but it seems stupid to do so just to get coveralls from complaining. Thoughts or workarounds?

@kwonoj
Copy link
Member

kwonoj commented Sep 9, 2016

For this case I'd rather allow coverage decreasing. Thought way to test those cases bit, but wasn't able to find easy way to create legit coverage.

@kwonoj
Copy link
Member

kwonoj commented Sep 14, 2016

LGTM

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 97.114% when pulling 9a4c306 on jayphelps:root into cd953b1 on ReactiveX:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 97.128% when pulling a098132 on jayphelps:root into 6bd3423 on ReactiveX:master.

@coveralls
Copy link

coveralls commented Sep 15, 2016

Coverage Status

Coverage decreased (-0.02%) to 97.114% when pulling 9a4c306 on jayphelps:root into cd953b1 on ReactiveX:master.

@jayphelps
Copy link
Member Author

@kwonoj planning to merge or waiting for others to chime in?

@kwonoj kwonoj merged commit ea983c3 into ReactiveX:master Sep 15, 2016
@kwonoj
Copy link
Member

kwonoj commented Sep 15, 2016

@jayphelps sorry, just too busy with new hire orientation all day long. Merged. :)

@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 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