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:
parent
1fd52be6dd
commit
4353854671
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue