📜  在 javascript 代码示例中找出调用者函数

📅  最后修改于: 2022-03-11 15:02:33.445000             🧑  作者: Mango

代码示例1
const hello = () => {
  console.log(new Error('I was called').stack)
}
const sello = () => {
  hello()
}
sello()