Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including p-fatal with all npm packages installed. Try it out:

var pFatal = require("p-fatal")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

p-fatal v0.1.2

Re-throw unhandled promise rejections in the next turn, so other listeners get a chance to also run.

p-fatal ======= Re-throw unhandled promise rejections in the next turn, so other listeners get a chance to also run.

API

This module exports nothing. It does all work as a side effect of importing it.

Known issues

  • Versions 0.1.x don't care whether the rejection becomes handled later. I currently consider this a feature, but I'd be willing to offer opt-out. I think it's still a better idea to setup your rejection handlers asap.

 

License

ISC
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free