V8 API Reference Guide generated from the header files
|
#include <v8.h>
Public Member Functions | |
int | GetLineNumber () const |
int | GetColumn () const |
int | GetScriptId () const |
Local< String > | GetScriptName () const |
Local< String > | GetScriptNameOrSourceURL () const |
Local< String > | GetFunctionName () const |
bool | IsEval () const |
bool | IsConstructor () const |
bool | IsWasm () const |
A single JavaScript stack frame.
int v8::StackFrame::GetColumn | ( | ) | const |
Returns the 1-based column offset on the line for the associated function call. This method will return Message::kNoColumnInfo if it is unable to retrieve the column number, or if kColumnOffset was not passed as an option when capturing the StackTrace.
Returns the name of the function associated with this stack frame.
int v8::StackFrame::GetLineNumber | ( | ) | const |
Returns the number, 1-based, of the line for the associate function call. This method will return Message::kNoLineNumberInfo if it is unable to retrieve the line number, or if kLineNumber was not passed as an option when capturing the StackTrace.
int v8::StackFrame::GetScriptId | ( | ) | const |
Returns the id of the script for the function for this StackFrame. This method will return Message::kNoScriptIdInfo if it is unable to retrieve the script id, or if kScriptId was not passed as an option when capturing the StackTrace.
Returns the name of the resource that contains the script for the function for this StackFrame.
Returns the name of the resource that contains the script for the function for this StackFrame or sourceURL value if the script name is undefined and its source ends with //# sourceURL=... string or deprecated //@ sourceURL=... string.
bool v8::StackFrame::IsConstructor | ( | ) | const |
Returns whether or not the associated function is called as a constructor via "new".
bool v8::StackFrame::IsEval | ( | ) | const |
Returns whether or not the associated function is compiled via a call to eval().
bool v8::StackFrame::IsWasm | ( | ) | const |
Returns whether or not the associated functions is defined in wasm.