Benjamin Gruenbaum
Benjamin Gruenbaum
@stefanpenner this is now implemented in io.js in the 1.4 release. Please consider adding it to RSVP.
Q now has this, you're pretty much the last ones left.
Ping @stefanpenner
So, it's been like half a year and native node does this. Would be nice to finally have it in.
Basically ``` js if (typeof process === "object" && typeof process.emit === "function") { try { process.emit("unhandledRejection", promise._result, promise); } catch (e) { /* don't throw for rejection hooks failing...
This just cost me like 4 hours stef :(
Because I worked on a code base I did not author that used `es6-promise` - I just _assumed_ implementations don't swallow exceptions anymore :/
Don't Chrome async stack traces significantly slow things down?
@repenaxa thanks for dropping by :) - Would the value of `this` and `arguments` be available? - Would it be available at the time the error happened? - Would there...
I'd appreciate it if we also consider the `.recover` extension I describe here: ``` js let file = await fs.getFileAsync('dne').recover({ EISDIR(err) {} ENOENT(err) { ... } }); ``` and copying...