Is there any typechecking library for JS that can warn of potentially "swallowed" promises? Does Flow do this?
process.on("unhandledRejection", err => {
console.error("Uncaught Promise Error: \n" + err.stack);
console.error(err);
});