[SERVER-21338] ScopedThreads do not receive non-enumerable properties of objects Created: 06/Nov/15 Updated: 09/May/16 Resolved: 09/May/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Judah Schvimer | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL | |||||||||||||||||||||
| Steps To Reproduce: |
|
|||||||||||||||||||||
| Participants: |
| Description |
|
Non-enumerable properties to a Scoped Thread via an arguments object do not get passed properly and do not appear in the object inside of the ScopedThread function. The following snippet of code illustrates the problem. Ideally none of the asserts would fail, but here only the asserts for property 'c' fail, showing that while 'args.a' and 'args.b' both get passed, 'args.c' does not. |
| Comments |
| Comment by Mira Carey [ 09/May/16 ] |
|
Threads are already just a facility for testing and we can only pass types that translate into bson. I'd rather avoid doing any kind of fancy introspection and leave this the way it is. |