v8
3.25.30(node0.11.13)
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 |
bool | IsSharedCrossOrigin () const |
Static Public Member Functions | |
static void | PrintCurrentStackTrace (Isolate *isolate, FILE *out) |
Static Public Attributes | |
static const int | kNoLineNumberInfo = 0 |
static const int | kNoColumnInfo = 0 |
static const int | kNoScriptIdInfo = 0 |
Definition at line 1989 of file api.cc.
References ENTER_V8, EscapableHandleScope::Escape(), MessageHandler::GetMessage(), ON_BAILOUT, Utils::OpenHandle(), and Utils::ToLocal().
Referenced by DumpException().
int GetEndColumn | ( | ) | const |
Returns the index within the line of the last character where the error occurred.
Definition at line 2111 of file api.cc.
References Handle< T >::cast(), ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, and Utils::OpenHandle().
Referenced by DumpException(), and ReportException().
int GetEndPosition | ( | ) | const |
Returns the index within the script of the last character where the error occurred.
Definition at line 2086 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 2061 of file api.cc.
References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, Message::kNoLineNumberInfo, ON_BAILOUT, and Utils::OpenHandle().
Referenced by DumpException(), and ReportException().
Returns the resource data for the script from where the function causing the error originates.
v8::Handle< Value > GetScriptResourceName | ( | ) | const |
Returns the resource name for the script from where the function causing the error originates.
Definition at line 2001 of file api.cc.
References Handle< T >::cast(), Script::cast(), ENTER_V8, EscapableHandleScope::Escape(), name, Utils::OpenHandle(), and Utils::ToLocal().
Referenced by ReportException().
Definition at line 2143 of file api.cc.
References ENTER_V8, EscapableHandleScope::Escape(), EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, ON_BAILOUT, Utils::OpenHandle(), and Utils::ToLocal().
Referenced by DumpException(), and 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 2017 of file api.cc.
References Handle< T >::cast(), ENTER_V8, EscapableHandleScope::Escape(), 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 2096 of file api.cc.
References ENTER_V8, EXCEPTION_BAILOUT_CHECK, EXCEPTION_PREAMBLE, 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 2076 of file api.cc.
References Handle< T >::cast(), ENTER_V8, and Utils::OpenHandle().
bool IsSharedCrossOrigin | ( | ) | const |
Passes on the value set by the embedder when it fed the script from which this Message was generated to V8.
Definition at line 2130 of file api.cc.
References Handle< T >::cast(), Script::cast(), ENTER_V8, and Utils::OpenHandle().
|
static |
Definition at line 2161 of file api.cc.
References ENTER_V8, and Isolate::PrintCurrentStackTrace().
|
static |
Definition at line 1264 of file v8.h.
Referenced by StackFrame::GetColumn().
|
static |
Definition at line 1263 of file v8.h.
Referenced by Message::GetLineNumber(), and StackFrame::GetLineNumber().
|
static |
Definition at line 1265 of file v8.h.
Referenced by StackFrame::GetScriptId(), and TEST().