Skip to main content

callsite_stack

Function callsite_stack 

Source
pub fn callsite_stack(depth: usize) -> Result<Value, String>
Expand description

An array of depth synthetic V8 CallSite objects for Error.captureStackTrace. Stack-introspection packages (e.g. depd) set Error.prepareStackTrace to a function that receives this array; the getters return neutral placeholders (no real frame info is available), which is enough for those packages to build their deprecation sites without throwing.