Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20098

Fix duplicate property definition in multiVersion/libs/data_generators.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 3.1.8
    • 3.1.7
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL

    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.

      Attachments

        Activity

          People

            kamran.khan Kamran K.
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: