Node Style Woes - Domains and Promises
D
omains have been the red-headed step child of error handling in Node.js It is a library that has been deprecated since v0.12
and has been awaiting a suitable replacement ever since ( we are at v6.5
at the time of writing ). Until one has been implemented by the Node Core team, it is still de-facto way to deal with error propagation. As Node.js supports more and more ES6 features, I have been upgrading my open source projects where it seem appropriate. In my command line tool package, seeli, I was doing some updates and came across some exceptionally odd behavior around ES6 Promises and implicit Domain binding. In a nutshell - It's broke.