v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
Local< Script > | BindToCurrentContext () |
int | GetId () |
Handle< Value > | GetScriptName () |
int | GetLineNumber (int code_pos) |
Static Public Attributes | |
static const int | kNoScriptId = 0 |
Binds the script to the currently entered context.
Definition at line 1627 of file api.cc.
References Handle< T >::cast(), SharedFunctionInfo::cast(), and Utils::OpenHandle().
Referenced by TEST(), and THREADED_TEST().
int GetId | ( | ) |
Definition at line 1639 of file api.cc.
References Handle< T >::cast(), Script::cast(), SharedFunctionInfo::cast(), LOG_API, ON_BAILOUT, and Utils::OpenHandle().
int GetLineNumber | ( | int | code_pos | ) |
Returns zero based line number of the code_pos location in the script. -1 will be returned if no information available.
Definition at line 1655 of file api.cc.
References Handle< T >::cast(), Script::cast(), v8::internal::GetScriptLineNumber(), LOG_API, ON_BAILOUT, and Utils::OpenHandle().
Definition at line 1670 of file api.cc.
References Handle< T >::cast(), Script::cast(), LOG_API, ON_BAILOUT, Utils::OpenHandle(), and Utils::ToLocal().
|
static |
Definition at line 1031 of file v8.h.
Referenced by Function::ScriptId().