1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

object was using nil context and not portal

This commit is contained in:
Charles Lowell 2010-08-28 14:44:51 -05:00
parent 1fd52be6dd
commit 4353854671

View file

@ -22,13 +22,13 @@ module V8
end
def to_s
@context.enter do
@portal.open do |to|
to.rb(@native.ToString())
end
end
def each
@context.enter do
@portal.open do |to|
for prop in to.rb(@native.GetPropertyNames())
yield prop, self[prop]
end