From 4353854671ebfd1652f9e14c9899c857bc0412e1 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Sat, 28 Aug 2010 14:44:51 -0500 Subject: [PATCH] object was using nil context and not portal --- lib/v8/object.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v8/object.rb b/lib/v8/object.rb index 6c752a2..3dd4300 100644 --- a/lib/v8/object.rb +++ b/lib/v8/object.rb @@ -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