[SERVER-23626] Function.prototype isn't treated as BSON type Code Created: 09/Apr/16 Updated: 13/Aug/16 Resolved: 20/Jul/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 3.2.0-rc0 |
| Fix Version/s: | 3.3.11 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Max Hirschhorn | Assignee: | Waley Chen |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible | |||
| Operating System: | ALL | |||
| Steps To Reproduce: |
|
|||
| Sprint: | Platforms 13 (04/22/16), Platforms 14 (05/13/16), Platforms 15 (06/03/16), Platforms 16 (06/24/16), Platforms 17 (07/15/16), Platforms 18 (08/05/16) | |||
| Participants: |
| Description |
| Comments |
| Comment by Githook User [ 20/Jul/16 ] |
|
Author: {u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}Message: |
| Comment by Mira Carey [ 11/Apr/16 ] |
|
The broader problem (that I introduced between 3.1.9 and 3.2.0) is that we aren't properly handling prototypes of any of the interesting built in types. So, we've got the same bug for Function, Date and RegExp. Fix is that we need to check the prototype key with JS::IdentifyStandardInstanceOrPrototype, instead of just JS::IdentifyStandardInstance. |