X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/f9bf01c6616d5ddcf65b13b33cedf9e387ff7a63..14957cd040308e3eeec43d26bae5d76da13fcd85:/API/JSContextRefPrivate.h?ds=inline diff --git a/API/JSContextRefPrivate.h b/API/JSContextRefPrivate.h index ff014ec..4f77aea 100644 --- a/API/JSContextRefPrivate.h +++ b/API/JSContextRefPrivate.h @@ -46,6 +46,15 @@ extern "C" { */ JS_EXPORT JSGlobalContextRef JSContextGetGlobalContext(JSContextRef ctx); + +/*! +@function +@abstract Gets a Backtrace for the existing context +@param ctx The JSContext whose backtrace you want to get +@result A string containing the backtrace +*/ +JS_EXPORT JSStringRef JSContextCreateBacktrace(JSContextRef ctx, unsigned maxStackSize) AVAILABLE_IN_WEBKIT_VERSION_4_0; + #ifdef __cplusplus } #endif