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 cache value being promise in ubuntu #878

Merged
merged 2 commits into from
Feb 28, 2017
Merged

Conversation

jung-kim
Copy link
Collaborator

fix: #877

This was a crazy bug and I would definitely need more investigation to confirm but it seems that then blocks that are created after the promise is resolved doesn't get called within ubuntu. I think that is against A+ promise spec but it has been awhile since I took a look at that...

But what we were doing is that we would cache the promise object and chain the then from there, however for whatever reason ubuntu couldn't chain then functions when promise is already resolved and cache was useless as we weren't able to extract the value.

This fix is to store hard value if cached function result value is a promise.

This is a fun bug and I'm interested in seeing how the OS diff cause this subtle bug...

@jung-kim jung-kim merged commit 4447bc2 into FredrikNoren:master Feb 28, 2017
@jung-kim jung-kim deleted the 877 branch March 1, 2017 03:05
jung-kim added a commit that referenced this pull request Apr 3, 2017
Fix cached promised values not resolving properly in some platforms.  #874 #878 #887
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.

Not able to properly connect
1 participant