Guest User

Untitled

a guest
Jan 15th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. async function bottom() {
  2. console.log('in bottom');
  3. const stack = new Error().stack;
  4. console.log('stack:', '<<<' + stack + '>>>');
  5. console.log(typeof stack);
  6. console.trace('stack trace');
  7. }
  8.  
  9. async function middle() {
  10. await bottom();
  11. }
  12.  
  13. async function topmost() {
  14. await middle();
  15. }
  16.  
  17. topmost();
Add Comment
Please, Sign In to add comment