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

sap/ui/thirdparty/es6-promise does not support promise.finally #2095

Closed
mauriciolauffer opened this issue Jul 5, 2018 · 2 comments
Closed
Assignees

Comments

@mauriciolauffer
Copy link
Contributor

OpenUI5 version:
All

Any other tested browsers/devices(OK/FAIL):
IE9 FAIL;
Edge FAIL;
Chrome > 62 OK

URL (minimal example if possible):
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally

What is the expected result?
After fetch.then or fetch.catch being executed, fetch.finally should be called. Fetch.finally should always be called before concluding the fetch command.

What happens instead?
An error is raised for fetch.finally doesn't exist.

Any other information? (attach screenshot if possible)
Just need to update the es6-promise version, the one being used in UI5 is from 2015 and it's quite outdated.

@codeworrior
Copy link
Member

codeworrior commented Jul 5, 2018

Updating es6-promise makes sense, yes.

But I'm not sure if upgrading the polyfill is sufficient. I tried to find information about what browsers meanwhile support Promise.prototype.finally and the best I could find was https://hospodarets.com/promise.prototype.finally#support (the support table on MDN seems to be outdated).

When comparing this with our browser support matrix, one open question is whether the 'last two versions' of Safari means 11.1 and 11.0 (would be fine) or 11 and 10. If it means the latter, we either would have to activate the es6-promise again on Safari 10 or would have to add another polyfill just for the Promise.prototype.finally. I'll clarify this internally and let you know.

@codeworrior codeworrior self-assigned this Jul 5, 2018
@codeworrior
Copy link
Member

Just to give an update:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants