summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jstests.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-11-09 10:35:12 -0500
committerJonathan Reams <jbreams@mongodb.com>2015-11-11 11:12:17 -0500
commit338f764be00c3a5cef387dd1ba8a56671fc4ef6b (patch)
tree361281c805e0230d5227d5c433d0b29bc6258693 /src/mongo/dbtests/jstests.cpp
parent17b1cdd81328e94c03d97860ec5688028e0f6c22 (diff)
downloadmongo-338f764be00c3a5cef387dd1ba8a56671fc4ef6b.tar.gz
SERVER-6102 Deserialize BSON undefined as JS undefined
Diffstat (limited to 'src/mongo/dbtests/jstests.cpp')
-rw-r--r--src/mongo/dbtests/jstests.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/dbtests/jstests.cpp b/src/mongo/dbtests/jstests.cpp
index fc043e01323..fee13dde315 100644
--- a/src/mongo/dbtests/jstests.cpp
+++ b/src/mongo/dbtests/jstests.cpp
@@ -1505,18 +1505,9 @@ class Undefined : public TestRoundTrip {
return b.obj();
}
- // Don't need to return anything because we are overriding both jsonOut and jsonIn
virtual string json() const {
- return "";
- }
-
- // undefined values come out as null in the shell. See SERVER-6102.
- virtual string jsonIn() const {
return "{ \"a\" : undefined }";
}
- virtual string jsonOut() const {
- return "{ \"a\" : null }";
- }
};
class EscapedCharacters : public TestRoundTrip {