I am trying to read the amount of functions on the call stack. Is there any possibility to do this with javascript?
Thank you in advance!
edit: As far as I understand, the call stack contains the functions which are excecuted at the moment. For example
foo(){
bar();
}
leads to the call stack
bar
foo
My question is now if it is possible to get the amount of functions (in this case 2)