mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
automatically convert ruby hashes into javascript objects
This commit is contained in:
parent
90e7e824d0
commit
408bd22045
2 changed files with 7 additions and 1 deletions
|
@ -41,6 +41,12 @@ module V8
|
|||
a.Set(i, To.v8(item))
|
||||
end
|
||||
end
|
||||
when ::Hash
|
||||
C::Object::New().tap do |o|
|
||||
value.each do |key, value|
|
||||
o.Set(To.v8(key), To.v8(value))
|
||||
end
|
||||
end
|
||||
when nil,Numeric
|
||||
value
|
||||
else
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b74190886c2a7c8ff33fc4d927162d068fc9802e
|
||||
Subproject commit 4cfdb1cd934d27d8e8d38bb99871036884a26d39
|
Loading…
Add table
Reference in a new issue