Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. reject happens after await
  2. awaiting promise 0
  3. awaiting promise 1
  4. rejecting promise 1
  5. promise 1 got rejected
  6. awaiting promise 2
  7. reject happens before await
  8. awaiting promise 0
  9. rejecting promise 1
  10. (node:24066) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined
  11. (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.
  12. awaiting promise 1
  13. promise 1 got rejected
  14. awaiting promise 2
  15. (node:24066) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement