summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2011-07-03 18:47:14 -0700
committeragirbal <antoine@10gen.com>2011-07-03 18:47:14 -0700
commit5dcc4f9d49173b5e67909714f3bf39f918d2398a (patch)
tree7a412611a9b4d00cea2791aec7ec3dc6b646b35e /shell
parent758a9c734164ecda21cdc5f96436fed88bdfd24f (diff)
downloadmongo-5dcc4f9d49173b5e67909714f3bf39f918d2398a.tar.gz
SERVER-854: NumberInt implemented in SM
Diffstat (limited to 'shell')
-rw-r--r--shell/utils.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/utils.js b/shell/utils.js
index 1ced646c304..d27c29f8b51 100644
--- a/shell/utils.js
+++ b/shell/utils.js
@@ -455,13 +455,13 @@ NumberLong.prototype.tojson = function() {
return this.toString();
}
-//if ( ! NumberInt.prototype ) {
-// NumberInt.prototype = {}
-//}
+if ( ! NumberInt.prototype ) {
+ NumberInt.prototype = {}
+}
-//NumberInt.prototype.tojson = function() {
-// return this.toString();
-//}
+NumberInt.prototype.tojson = function() {
+ return this.toString();
+}
if ( ! ObjectId.prototype )
ObjectId.prototype = {}