# File lib/v8/stack.rb, line 7 def initialize(to, native) @to = to @native = native end
# File lib/v8/stack.rb, line 16 def each for i in 0..length - 1 yield V8::StackFrame.new(@to, @native.GetFrame(i)) end end
# File lib/v8/stack.rb, line 12 def length @native.GetFrameCount() end
# File lib/v8/stack.rb, line 22 def to_s map {|f|"at #{f}"}.join("\n") end