[SERVER-20098] Fix duplicate property definition in multiVersion/libs/data_generators.js Created: 24/Aug/15  Updated: 19/Sep/15  Resolved: 26/Aug/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.1.7
Fix Version/s: 3.1.8

Type: Bug Priority: Trivial - P5
Reporter: Kamran K. Assignee: Kamran K.
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-19325 Remove duplicate properties from obje... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The returned object below has duplicate 'RegEx' properties:

    function GenFlatObjectAllTypesHardCoded() {
        return {
...
            "RegEx" : RegExp("a"),
            "RegEx" : /a/,
        }
    }

Only the second 'RegEx' property persists, so we should remove the first line to avoid problems with ES5 strict mode and to prevent confusion when reading the code.



 Comments   
Comment by Githook User [ 26/Aug/15 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: 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.
Branch: master
https://github.com/mongodb/mongo/commit/5d76623abc23f453c6530b1f8543476c5d65c4e9

Generated at Thu Feb 08 03:53:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.