question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No support for finally?

See original GitHub issue

Got 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:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
SamVerschuerencommented, Jan 12, 2016

.finally isn’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.

4reactions
adamreisnzcommented, Jan 8, 2018

Yes, it’s coming in Node 10.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found