[SERVER-8215] ES5: Object.preventExtensions() broken when run on documents Created: 17/Jan/13 Updated: 28/Apr/17 Resolved: 28/Apr/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, Shell |
| Affects Version/s: | 2.3.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Heckmann | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | db.u.drop() ) Object.preventExtensions(doc); |
||||||||
| Participants: | |||||||||
| Description |
|
Passing a document to Object.preventExtensions() does not work properly, the property in question is set on the document with the value discarded and `null` assigned. Expected the property in question to be discarded entirely, not set on the document at all. Note that passing plain (non-document) objects works correctly. |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 28/Apr/17 ] |
|
This was fixed either during the move from MozJS to V8, or in the subsequent move from V8 back to MozJS. In either event, the currently behavior in the shell does not reproduce the issue |