sindresorhus / callsites

Get callsites from the V8 stack trace API
MIT License
260 stars 22 forks source link

No async promise stacks #5

Open bahmutov opened 7 years ago

bahmutov commented 7 years ago

Too bad V8 does not have anything useful when we try to determine callsite in promise callback

function foo() {
  const sites = callsites()
  // will have just foo()
}
Promise.resolve(42).then(foo)