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
Promise doesn't handle then-able result #260
Comments
Hi Rural, |
Maybe you can take com.gargoylesoftware.htmlunit.javascript.host.PromiseTest.resolveThenables() as starting point |
Ok, I will try. |
PR created. |
Hi @RuralHunter, hopefully i have fixed your case. Please check the tests i wrote and feel free to add more test cases if you think there is something missing. |
Have added on more test. Will close this - please open a new one if you have more problems. Will work on you other issues later. |
In real browser(Chrome), if the resolve function returns a then-able object(having then function), Promise.then handles it. But htmlunit fails to do so. Test case:
chrome outputs 'fulfilled!' but htmlunit outputs the thenable object.
The text was updated successfully, but these errors were encountered: