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.

Possibly unhandled error should be thrown

See original GitHub issue

Node v0.10, non-harmony. Such as:

var Promise = require('bluebird');
new Promise(function () { throw('err') });
// Unhandled error will be thrown.
var Promise = require('es6-promise').Promise;
new Promise(function () { throw('err') });
// Nothing will happen.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:2
  • Comments:44 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
stefanpennercommented, Jun 6, 2016

The means to catch unhandled rejections is a part of ECMAScript 2017 Draft spec (as HostPromiseRejectionTracker). Looking forward to see it in this library!

Ya, still trying to find time 😉 It will land, I was a big proponent of the feature in the first place.

2reactions
jakearchibaldcommented, Jan 15, 2015

Chrome currently logs unhandled errors. Firefox does it on GC.

Happy to do the same as Chrome here. It should be a log rather than a throw, we’d be spec-breaking if it appeared in window.onerror.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 1.6.0: "Possibly unhandled rejection" error [duplicate]
This is a big problem for me currently as I'm migrating a code base and replacing an old injected dependency.
Read more >
Angular 1.6's Possibly unhandled rejection errors - codelord.net
Essentially, this error is printed to the console whenever a promise in your app is rejected (resolved with a failure), and there's no...
Read more >
Error handling with promises
Usually such errors are unrecoverable, so our best way out is to inform the user about the problem and probably report the incident...
Read more >
Tracking Unhandled Promise Rejections - TrackJS
Before we can look at error handling in promises, it is useful to see a simple ... throws up its hands and produces...
Read more >
Handling those unhandled promise rejections with JS async ...
You put an await call inside a try/catch block or you use .catch(); The await ed function fails (i.e. rejects a promise); You...
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