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

Cancelable deferreds should resolve normally #23

Closed
wants to merge 1 commit into from

Conversation

scothis
Copy link
Member

@scothis scothis commented Mar 9, 2012

A resolved cancelable deferred should provide the resolved value to its
callbacks. It previously always returned null.

A resolved cancelable deferred should provide the resolved value to its
callbacks.  It previously always returned null.
@briancavalier
Copy link
Member

Just to record the final outcome: After investigating this, it turned out to be a bug in the when.js core rather than in when/cancelable. There was a specific case where passing null as the callback could cause the resolution value to be clobbered with null. It didn't affect all promises, or the errback or progressback.

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