[SERVER-12601] Shell REPL doesn't properly print literal objects containing an _id field Created: 04/Feb/14 Updated: 11/Feb/14 Resolved: 11/Feb/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.5.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ben Becker | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | 26qa, shell | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
The following examples illustrate strange behavior with the shell REPL's handling of objects with an _id field. Note that all of these should be valid, and should print the object itself:
|
| Comments |
| Comment by Ben Becker [ 11/Feb/14 ] | ||
|
exi, many thanks for pointing this out. I had erroneously assumed that object literals could be evaluated just like other literal types (e.g. array, regex, string, number, etc.). | ||
| Comment by Reno Reckling [ 11/Feb/14 ] | ||
|
This is not a bug but a "feature" of javascript.
|