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

2.15 beta - onFulfillment is not a function #15490

Closed
kellyselden opened this issue Jul 11, 2017 · 5 comments
Closed

2.15 beta - onFulfillment is not a function #15490

kellyselden opened this issue Jul 11, 2017 · 5 comments
Assignees

Comments

@kellyselden
Copy link
Member

From my stepping through the stack traces on both 2.14 and 2.15, it seems the RSVP catch logic may have changed a little between versions.

https://github.com/kellyselden/ember-wait-for-test-helper/pull/50/files#diff-d913131b1f61f7940eaff58ff6996ec6R35
https://travis-ci.org/kellyselden/ember-wait-for-test-helper/jobs/252511064#L1969

@bekzod
Copy link
Contributor

bekzod commented Jul 12, 2017

yes it has been upgraded to 3.5.0 in 2.14 and to 3.6.1 in 2.15.beta, is there any issue with it ?

@bekzod
Copy link
Contributor

bekzod commented Jul 13, 2017

I think its not rsvp but is test/promise particularly this line https://github.com/emberjs/ember.js/blob/master/packages/ember-testing/lib/test/promise.js#L65
I think its need to check if function passed, not sure but error stack leads to those lines

@rwjblue
Copy link
Member

rwjblue commented Jul 14, 2017

@stefanpenner - Can you please review https://github.com/emberjs/ember.js/blob/master/packages/ember-testing/lib/test/promise.js#L12-L14? Specifically, it seems that we cannot assume onFulfillment is actually passed to our custom Promise subclasses .then. Is this a bug in RSVP somehow, or just in isolate assuming that the first arg is always present?

@bekzod
Copy link
Contributor

bekzod commented Jul 15, 2017

@stefanpenner I don't think RSVP behaving incorrectly here is gist for reproducing same issue,
both native inherited and rsvp inherited Promise behaving same way rejecting when inherited then has null onFulfillment
https://gist.github.com/bekzod/68e8fc1c739745b6a5bdb12e99badfd4 (run in node 6.8.1)

@stefanpenner
Copy link
Member

@bekzod I agree. I don't believe RSVP is the offender here, although I am surprised upgrading causes a downstream issue at all (but I dont have time to do root cause analysis on this one), the issue is in embers code, we should just fix that guy up and cut a new beta.

bekzod added a commit to bekzod/ember.js that referenced this issue Jul 16, 2017
bekzod added a commit to bekzod/ember.js that referenced this issue Jul 16, 2017
bekzod added a commit to bekzod/ember.js that referenced this issue Jul 16, 2017
stefanpenner added a commit that referenced this issue Jul 17, 2017
[BUGFIX beta] possible fix for #15490
@rwjblue rwjblue closed this as completed Jul 19, 2017
locks pushed a commit that referenced this issue Jul 20, 2017
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

No branches or pull requests

4 participants