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

Stricter type checking #844

Merged
merged 2 commits into from Jul 20, 2015
Merged

Stricter type checking #844

merged 2 commits into from Jul 20, 2015

Conversation

megawac
Copy link
Collaborator

@megawac megawac commented Jul 11, 2015

No description provided.

@@ -1186,7 +1192,7 @@
return callback(e);
}
// if result is Promise object
if (typeof result !== 'undefined' && typeof result.then === "function") {
if (_isObject(result) && typeof result.then === "function") {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also be looser here and do result != null currently this will error if result is null tho

aearly added a commit that referenced this pull request Jul 20, 2015
@aearly aearly merged commit 4101af3 into caolan:master Jul 20, 2015
@aearly
Copy link
Collaborator

aearly commented Jul 20, 2015

Overlooked this. Looks good to me.

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.

None yet

2 participants