Created
August 3, 2017 15:34
-
-
Save adriancooney/716bba7dd1a77fe8f88e947915189b0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process.on("unhandledRejection", function(reason, p) { | |
| console.log(reason, p); | |
| console.log("Rejection handled") | |
| new Promise(function(resolve, reject) { | |
| console.log("Second rejection") | |
| reject(new Error("Foo")); | |
| }); | |
| }); | |
| console.log("First rejection") | |
| Promise.reject() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment