Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reject happens after await
- awaiting promise 0
- awaiting promise 1
- rejecting promise 1
- promise 1 got rejected
- awaiting promise 2
- reject happens before await
- awaiting promise 0
- rejecting promise 1
- (node:24066) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined
- (node:24066) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- awaiting promise 1
- promise 1 got rejected
- awaiting promise 2
- (node:24066) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement