V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::StackFrame Class Reference

#include <v8.h>

Public Member Functions

int GetLineNumber () const
 
int GetColumn () const
 
int GetScriptId () const
 
Local< StringGetScriptName () const
 
Local< StringGetScriptNameOrSourceURL () const
 
Local< StringGetFunctionName () const
 
bool IsEval () const
 
bool IsConstructor () const
 
bool IsWasm () const
 

Detailed Description

A single JavaScript stack frame.

Definition at line 1730 of file v8.h.

Member Function Documentation

◆ GetColumn()

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.

Definition at line 2935 of file api.cc.

◆ GetFunctionName()

Local< String > v8::StackFrame::GetFunctionName ( ) const

Returns the name of the function associated with this stack frame.

Definition at line 2968 of file api.cc.

◆ GetLineNumber()

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.

Definition at line 2929 of file api.cc.

◆ GetScriptId()

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.

Definition at line 2941 of file api.cc.

◆ GetScriptName()

Local< String > v8::StackFrame::GetScriptName ( ) const

Returns the name of the resource that contains the script for the function for this StackFrame.

Definition at line 2946 of file api.cc.

◆ GetScriptNameOrSourceURL()

Local< String > v8::StackFrame::GetScriptNameOrSourceURL ( ) const

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 2957 of file api.cc.

◆ IsConstructor()

bool v8::StackFrame::IsConstructor ( ) const

Returns whether or not the associated function is called as a constructor via "new".

Definition at line 2980 of file api.cc.

◆ IsEval()

bool v8::StackFrame::IsEval ( ) const

Returns whether or not the associated function is compiled via a call to eval().

Definition at line 2978 of file api.cc.

◆ IsWasm()

bool v8::StackFrame::IsWasm ( ) const

Returns whether or not the associated functions is defined in wasm.

Definition at line 2984 of file api.cc.


The documentation for this class was generated from the following files: