lib/v8/to.rb in therubyracer-0.6.0 vs lib/v8/to.rb in therubyracer-0.6.1
- old
+ new
@@ -2,11 +2,12 @@
module V8
module To
class << self
def ruby(value)
case value
- when V8::C::Object then V8::Object.new(value)
- when V8::C::String then "Wonkers!"
+ when V8::C::Function then V8::Function.new(value)
+ when V8::C::Object then V8::Object.new(value)
+ when V8::C::String then "Wonkers!"
else
value
end
end
\ No newline at end of file