Skip to main content

error_info_from_exception_stack_safe

Function error_info_from_exception_stack_safe 

Source
pub fn error_info_from_exception_stack_safe(
    cx: &mut JSContext,
    rval: MutableHandleValue<'_>,
) -> Option<ErrorInfo>
Expand description

Retrieve error info from the pending exception stack, by clearing it. Return None if there isn’t one or if it is a warning.