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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.1.8
    • Affects Version/s: 3.1.7
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: