mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
11 lines
187 B
Ruby
11 lines
187 B
Ruby
|
class V8::Conversion
|
||
|
module Hash
|
||
|
def to_v8
|
||
|
object = V8::Object.new
|
||
|
each do |key, value|
|
||
|
object[key] = value
|
||
|
end
|
||
|
return object.to_v8
|
||
|
end
|
||
|
end
|
||
|
end
|