v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#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 |
int 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.
Definition at line 2223 of file api.cc.
References Smi::cast(), ENTER_V8, v8::internal::GetProperty(), Message::kNoColumnInfo, Utils::OpenHandle(), and Smi::value().
Referenced by checkStackFrame().
Returns the name of the function associated with this stack frame.
Definition at line 2275 of file api.cc.
References ENTER_V8, EscapableHandleScope::Escape(), v8::internal::GetProperty(), Utils::OpenHandle(), and Utils::ToLocal().
Referenced by checkStackFrame().
int 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.
Definition at line 2210 of file api.cc.
References Smi::cast(), ENTER_V8, v8::internal::GetProperty(), Message::kNoLineNumberInfo, Utils::OpenHandle(), and Smi::value().
Referenced by checkStackFrame().
int 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.
Definition at line 2236 of file api.cc.
References Smi::cast(), ENTER_V8, v8::internal::GetProperty(), Message::kNoScriptIdInfo, Utils::OpenHandle(), and Smi::value().
Returns the name of the resource that contains the script for the function for this StackFrame.
Definition at line 2249 of file api.cc.
References ENTER_V8, EscapableHandleScope::Escape(), v8::internal::GetProperty(), Utils::OpenHandle(), and Utils::ToLocal().
Referenced by checkStackFrame().
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.
Definition at line 2262 of file api.cc.
References ENTER_V8, EscapableHandleScope::Escape(), v8::internal::GetProperty(), Utils::OpenHandle(), and Utils::ToLocal().
bool IsConstructor | ( | ) | const |
Returns whether or not the associated function is called as a constructor via "new".
Definition at line 2298 of file api.cc.
References ENTER_V8, v8::internal::GetProperty(), and Utils::OpenHandle().
Referenced by checkStackFrame().
bool IsEval | ( | ) | const |
Returns whether or not the associated function is compiled via a call to eval().
Definition at line 2288 of file api.cc.
References ENTER_V8, v8::internal::GetProperty(), and Utils::OpenHandle().
Referenced by checkStackFrame().