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

always return the value when we intercept on a setter. Has no effect, but it does get rid of an annoying warning.

This commit is contained in:
Charles Lowell 2010-06-18 14:59:54 +03:00
parent 8a7965c6e5
commit cfc12665b8

View file

@ -123,8 +123,10 @@ module V8
methods = obj.public_methods(false).map {|m| m.to_s}
if methods.include?(perl_name)
obj.send(perl_name, To.rb(value))
value
elsif methods.include?(camel_name)
obj.send(camel_name, To.rb(value))
value
else
C::Empty
end