0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
Aaron 2010-09-08 23:05:29 -07:00
parent 7c3493d652
commit df463cc254

View File

@ -216,7 +216,7 @@ const StringData _jscode_raw_utils =
"for ( var k in src ){\n"
"var v = src[k];\n"
"if ( deep && typeof(v) == \"object\" ){\n"
"if ( \"floatApprox\" in v ) {\n"
"if ( \"floatApprox\" in v ) { // convert NumberLong properly\n"
"eval( \"v = \" + tojson( v ) );\n"
"} else {\n"
"v = Object.extend( typeof ( v.length ) == \"number\" ? [] : {} , v , true );\n"