class V8::StackFrame

Public Class Methods

new(portal, native) click to toggle source
# File lib/v8/stack.rb, line 29
def initialize(portal, native)
  @to = portal
  @native = native
end

Public Instance Methods

column() click to toggle source
# File lib/v8/stack.rb, line 46
def column
  @native.GetColumn()
end
constructor?() click to toggle source
# File lib/v8/stack.rb, line 54
def constructor?
  @native.IsConstructor()
end
eval?() click to toggle source
# File lib/v8/stack.rb, line 50
def eval?
  @native.IsEval()
end
function_name() click to toggle source
# File lib/v8/stack.rb, line 38
def function_name
  @to.rb(@native.GetFunctionName())
end
line_number() click to toggle source
# File lib/v8/stack.rb, line 42
def line_number
  @native.GetLineNumber()
end
script_name() click to toggle source
# File lib/v8/stack.rb, line 34
def script_name
  @to.rb(@native.GetScriptName())
end
to_s() click to toggle source
# File lib/v8/stack.rb, line 58
def to_s
  if @native.GetFunctionName()
    "#{function_name} (#{script_name}:#{line_number}:#{column})"
  else
    "#{script_name}:#{line_number}:#{column}"
  end
end