Details
-
Bug
-
Resolution: Done
-
Trivial - P5
-
3.1.7
-
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
Issue Links
- is related to
-
SERVER-19325 Remove duplicate properties from objects in JS tests
-
- Closed
-