diff options
author | agirbal <antoine@10gen.com> | 2011-07-06 13:27:46 -0700 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2011-07-06 13:28:41 -0700 |
commit | a057d6d68e7a730bcf4a49dba51d9f617c234f32 (patch) | |
tree | 516db7a16b7d7132723a3521a821ae17bb27a754 /scripting | |
parent | 7b24e34433882d414f587aa7f7c02840e2e56255 (diff) | |
download | mongo-a057d6d68e7a730bcf4a49dba51d9f617c234f32.tar.gz |
SERVER-854: unplugging NumberInt as being automatically created from bson int values, breaks many behaviors
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/engine_spidermonkey.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp index 01aacbe49ca..88f48e36d13 100644 --- a/scripting/engine_spidermonkey.cpp +++ b/scripting/engine_spidermonkey.cpp @@ -591,9 +591,10 @@ namespace mongo { case Undefined: return JSVAL_NULL; case NumberDouble: - return toval( e.number() ); case NumberInt: - return toval( e.numberInt() ); + return toval( e.number() ); +// case NumberInt: +// return toval( e.numberInt() ); case Symbol: // TODO: should we make a special class for this case String: return toval( e.valuestr() ); |