# File lib/execjs/ruby_racer_runtime.rb, line 53 def unbox(value) case value when ::V8::Function nil when ::V8::Array value.map { |v| unbox(v) } when ::V8::Object value.inject({}) do |vs, (k, v)| vs[k] = unbox(v) unless v.is_a?(::V8::Function) vs end when String value.respond_to?(:force_encoding) ? value.force_encoding('UTF-8') : value else value end end