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: no longer error when checking .then on variables #120

Merged
merged 2 commits into from
Apr 22, 2019

Conversation

M-TGH
Copy link
Contributor

@M-TGH M-TGH commented Apr 22, 2019

Issue #, if available: #114 (comment)

Description of changes:

Prevents errors from occurring on the case that a variable is null or undefined and being checked on whether it's a promise through accessing the .then property.
I think properties are only inaccessible on null and undefined, so as
far as I know this should fully catch this case. Let me know if there's
more.

Sorry for the double if you already fixed it, noticed #114 (comment) after I already made these changes so I thought I might as well open a PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I think properties are only unnaccesible on null and undefined, so as 
far as I know this should fully catch this case. Let me know if there's 
more things.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants