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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 3.1.7
    • Fix Version/s: 3.1.8
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: