No support for finally?
See original GitHub issueGot the following error:
TypeError: del(...).catch(...).finally is not a function
Given del has a promise interface, is there no support for a finally clause?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Promise.prototype.finally | Can I use... Support tables for ...
When the promise is settled, whether fulfilled or rejected, the specified callback function is executed. Usage % of. all users, all tracked, tracked...
Read more >Promise.prototype.finally() - JavaScript - MDN Web Docs
The finally() method of a Promise object schedules a function to be called when the promise is settled (either fulfilled or rejected).
Read more >TypeError: Object doesn't support property or method 'finally'
I am using angular 1.6 with gulp and es6 promise which has .finally() block, its working fine ...
Read more >promise.prototype.finally
Invoke its "shim" method to shim Promise.prototype.finally if it is unavailable or noncompliant. Note: a global Promise must already exist: the ...
Read more >Browser Compatibility of Promise.prototype.finally
The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

.finallyisn’t part of the spec.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
You can use
.catch(...).then(...). Think that is the same behaviour.Yes, it’s coming in Node 10.