![]() |
v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
Local< String > | Get () const |
Local< String > | GetSourceLine () const |
Handle< Value > | GetScriptResourceName () const |
Handle< Value > | GetScriptData () const |
Handle< StackTrace > | GetStackTrace () const |
int | GetLineNumber () const |
int | GetStartPosition () const |
int | GetEndPosition () const |
int | GetStartColumn () const |
int | GetEndColumn () const |
Static Public Member Functions | |
static void | PrintCurrentStackTrace (FILE *out) |
Static Public Attributes | |
static const int | kNoLineNumberInfo = 0 |
static const int | kNoColumnInfo = 0 |
Definition at line 1773 of file api.cc.
References HandleScope::Close(), ENTER_V8, MessageHandler::GetMessage(), ON_BAILOUT, Utils::OpenHandle(), and Utils::ToLocal().
int GetEndColumn | ( | ) | const |
Returns the index within the line of the last character where the error occurred.
Definition at line 1920 of file api.cc.
References Handle< T >::cast(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, Message::kNoColumnInfo, and Utils::OpenHandle().
Referenced by ReportException().
int GetEndPosition | ( | ) | const |
Returns the index within the script of the last character where the error occurred.
Definition at line 1891 of file api.cc.
References Handle< T >::cast(), ENTER_V8, and Utils::OpenHandle().
int GetLineNumber | ( | ) | const |
Returns the number, 1-based, of the line where the error occurred.
Definition at line 1865 of file api.cc.
References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, Message::kNoLineNumberInfo, ON_BAILOUT, and Utils::OpenHandle().
Referenced by ReportException().
v8::Handle< Value > GetScriptData | ( | ) | const |
Returns the resource data for the script from where the function causing the error originates.
Definition at line 1802 of file api.cc.
References Handle< T >::cast(), Script::cast(), HandleScope::Close(), ENTER_V8, Utils::OpenHandle(), and Utils::ToLocal().
v8::Handle< Value > GetScriptResourceName | ( | ) | const |
Returns the resource name for the script from where the function causing the error originates.
Definition at line 1785 of file api.cc.
References Handle< T >::cast(), Script::cast(), HandleScope::Close(), ENTER_V8, Utils::OpenHandle(), and Utils::ToLocal().
Referenced by ReportException().
Definition at line 1940 of file api.cc.
References HandleScope::Close(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, ON_BAILOUT, Utils::OpenHandle(), and Utils::ToLocal().
Referenced by ReportException().
v8::Handle< v8::StackTrace > GetStackTrace | ( | ) | const |
Exception stack trace. By default stack traces are not captured for uncaught exceptions. SetCaptureStackTraceForUncaughtExceptions allows to change this option.
Definition at line 1819 of file api.cc.
References Handle< T >::cast(), HandleScope::Close(), ENTER_V8, Utils::OpenHandle(), and Utils::StackTraceToLocal().
int GetStartColumn | ( | ) | const |
Returns the index within the line of the first character where the error occurred.
Definition at line 1902 of file api.cc.
References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, Message::kNoColumnInfo, and Utils::OpenHandle().
Referenced by ReportException().
int GetStartPosition | ( | ) | const |
Returns the index within the script of the first character where the error occurred.
Definition at line 1880 of file api.cc.
References Handle< T >::cast(), ENTER_V8, and Utils::OpenHandle().
|
static |
Definition at line 1958 of file api.cc.
References ENTER_V8, and Isolate::PrintCurrentStackTrace().
|
static |
Definition at line 748 of file v8.h.
Referenced by StackFrame::GetColumn(), Message::GetEndColumn(), and Message::GetStartColumn().
|
static |
Definition at line 747 of file v8.h.
Referenced by Message::GetLineNumber(), and StackFrame::GetLineNumber().