Function js::jsapi::CaptureCurrentStack [] [src]

pub unsafe extern "C" fn CaptureCurrentStack(
    cx: *mut JSContext,
    stackp: MutableHandleObject,
    maxFrameCount: c_uint
) -> bool

Capture the current call stack as a chain of SavedFrame JSObjects, and set |stackp| to the SavedFrame for the youngest stack frame, or nullptr if there are no JS frames on the stack. If |maxFrameCount| is non-zero, capture at most the youngest |maxFrameCount| frames.