-
Type: Bug
-
Resolution: Done
-
Priority: Trivial - P5
-
Affects Version/s: 3.1.7
-
Component/s: Testing Infrastructure
-
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.
- is related to
-
SERVER-19325 Remove duplicate properties from objects in JS tests
- Closed