summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamran Khan <kamran.khan@mongodb.com>2015-08-26 00:34:12 -0400
committerKamran Khan <kamran.khan@mongodb.com>2015-08-26 00:34:12 -0400
commit5d76623abc23f453c6530b1f8543476c5d65c4e9 (patch)
tree1eca06a2b126182739cf8808cd294a5157f41c97
parent3b22f6d2a55aed5a8a697283827046471354a9a6 (diff)
downloadmongo-5d76623abc23f453c6530b1f8543476c5d65c4e9.tar.gz
SERVER-20098 Fix duplicate property definition in multiVersion test helper
Previously, only regex literals were tested due to the duplicate definition. Now, regex literals and regex objects are tested.
-rw-r--r--jstests/multiVersion/libs/data_generators.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/multiVersion/libs/data_generators.js b/jstests/multiVersion/libs/data_generators.js
index 48e38458d6d..694d3f57514 100644
--- a/jstests/multiVersion/libs/data_generators.js
+++ b/jstests/multiVersion/libs/data_generators.js
@@ -277,8 +277,8 @@ function DataGenerator() {
// BSON Type: 10
"jstNULL" : null,
// BSON Type: 11
- "RegEx" : RegExp("a"),
- "RegEx" : /a/,
+ "RegExp" : RegExp("a"),
+ "RegExpLiteral" : /a/,
// BSON Type: 12
// The DBPointer type in the shell equals the DBRef BSON type
"DBPointer" : DBPointer("foo", ObjectId("bbbbbbbbbbbbbbbbbbbbbbbb")),