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

bug in named property enumerator

This commit is contained in:
Charles Lowell 2010-08-25 23:49:44 -05:00
parent 42507e4daf
commit 6f235622f2

View file

@ -166,7 +166,8 @@ module V8
extend AccessibleMethods
def self.call(info)
obj = To.rb(info.This())
methods = accessible_methods(obj).reject! {|m| m.to_s =~ /=$/}
methods = accessible_methods(obj)
methods.reject! {|m| m.to_s =~ /=$/}
names = V8::C::Array::New(methods.length)
methods.each_with_index do |name, i|
names.Set(i, C::String::New(name))