Skip to content

Instantly share code, notes, and snippets.

@pmurias
Created January 15, 2019 19:04
Show Gist options
  • Save pmurias/d868e9c9d5421d741bbd3d110b5ff55f to your computer and use it in GitHub Desktop.
Save pmurias/d868e9c9d5421d741bbd3d110b5ff55f to your computer and use it in GitHub Desktop.
async/await stacks sometimes work
async function bottom() {
console.log('in bottom');
const stack = new Error().stack;
console.log('stack:', '<<<' + stack + '>>>');
console.log(typeof stack);
console.trace('stack trace');
}
async function middle() {
await bottom();
}
async function topmost() {
await middle();
}
topmost();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment