[SERVER-34536] shell autocomplete is broken for constructors Created: 18/Apr/18 Updated: 29/Oct/23 Resolved: 27/Apr/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.7.3 |
| Fix Version/s: | 4.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eric Milkie | Assignee: | David Bradford (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | Start the shell (with a mongod already running) and type: |
||||||||
| Sprint: | TIG 2018-05-07 | ||||||||
| Participants: | |||||||||
| Description |
|
If you hit tab when in constructor context in the shell, you get an error. |
| Comments |
| Comment by Githook User [ 27/Apr/18 ] | ||||||||||||||||||
|
Author: {'email': 'david.bradford@mongodb.com', 'username': 'dbradf', 'name': 'David Bradford'}Message: | ||||||||||||||||||
| Comment by Max Hirschhorn [ 18/Apr/18 ] | ||||||||||||||||||
|
I think we could change the get handler
to be
so that it walks the prototype chain and allows the caller to use properties that are define on Object.prototype, such as Object.prototype.constructor. |