# File lib/v8/stack.rb, line 34 def initialize(native, context) @context = context @native = native end
# File lib/v8/stack.rb, line 57 def column @context.enter do @native.GetColumn() end end
# File lib/v8/stack.rb, line 69 def constructor? @context.enter do @native.IsConstructor() end end
# File lib/v8/stack.rb, line 63 def eval? @context.enter do @native.IsEval() end end
# File lib/v8/stack.rb, line 45 def function_name @context.enter do @context.to_ruby(@native.GetFunctionName()) end end
# File lib/v8/stack.rb, line 51 def line_number @context.enter do @native.GetLineNumber() end end
# File lib/v8/stack.rb, line 39 def script_name @context.enter do @context.to_ruby(@native.GetScriptName()) end end
# File lib/v8/stack.rb, line 75 def to_s @context.enter do "at " + if !function_name.empty? "#{function_name} (#{script_name}:#{line_number}:#{column})" else "#{script_name}:#{line_number}:#{column}" end end end