Subj : Re: Getting stack depth at Interrupt To : netscape.public.mozilla.jseng From : Mike Moening Date : Tue Apr 05 2005 10:31 am Thanks John. You are right its relatively fast. Just hoping for a faster way. "John Bandhauer" wrote in message news:d2ta3j$m8e1@ripley.netscape.com... > Iterating the stack with JS_FrameIterator is plenty fast. > > John. > > Mike Moening wrote: > > What is the most efficient way to get the current stack depth whenever the > > interrupt hook is fired? > > > > I would like to do it without using the following methods: > > 1) Iterating the stack and keeping a counter. > > 2) using JS_SetCallHook > > > > Is there a simple variable or api that I can use to get the current depth? > > > > Mike M. > > > > > .