I am using angular 1.6 with gulp and es6 promise which has .finally() block, its working fine all other except IE Edge and IE 11.
2 Answers
It doesn't seem to be supported by either of them ()
Some more information:
- ChakraCore - Implement Promise.prototype.finally Fixes #3520
- (as 27/09/2018) So in Chakra, but not in Edge yet.
In Edge devtools for Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134:
typeof (new Promise(()=>1).finally)
"undefined"
typeof (new Promise(()=>1).then)
"function"
typeof (new Promise(()=>1).catch)
"function"
For my application I was using to polyfill Promise (initially this was solely to polyfill for IE 11).
But then I noticed my app wasn't working in Edge.
Related issue -
Now I have switched to Bluebird to polyfill for both IE 11 and Edge.