pub unsafe extern "system" fn JsDiagGetFunctionPosition(
function: JsValueRef,
functionPosition: *mut JsValueRef
) -> JsErrorCode
Gets the source information for a function object.
JavaScript function.
Function position - scriptId, start line, start column, line number of first statement, column number of first statement.
{
"scriptId" : 1,
"fileName" : "c:\Test\Test.js",
"line" : 1,
"column" : 2,
"firstStatementLine" : 6,
"firstStatementColumn" : 0
}
The code JsNoError if the operation succeeded, a failure code otherwise.
This API can be called when runtime is at a break or running.