1
0
Fork 0
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:
Charles Lowell 2010-05-23 05:38:31 +03:00
parent 90e7e824d0
commit 408bd22045
2 changed files with 7 additions and 1 deletions

View file

@ -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