[SERVER-8246] Min/MaxKey on V8 are not comparable Created: 18/Jan/13 Updated: 27/Oct/15 Resolved: 22/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.0-rc1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Jonathan Reams |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Platform A (10/09/15), Build B (10/30/15) | ||||||||
| Participants: | |||||||||
| Description |
|
Cannot be singled out, or tested:
|
| Comments |
| Comment by Githook User [ 21/Oct/15 ] | |||||||||||||||||
|
Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}Message: | |||||||||||||||||
| Comment by Githook User [ 20/Oct/15 ] | |||||||||||||||||
|
Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}Message: | |||||||||||||||||
| Comment by Scott Hernandez (Inactive) [ 08/Oct/15 ] | |||||||||||||||||
|
Still has issues, but workable now:
| |||||||||||||||||
| Comment by Andrew Morrow (Inactive) [ 08/Oct/15 ] | |||||||||||||||||
|
scotthernandez - Is this still an issue with the new SpiderMonkey integration? | |||||||||||||||||
| Comment by Ben Becker [ 07/Mar/13 ] | |||||||||||||||||
|
Just to note, the behavior is the same in SM. ECMAScript 5 defines object equality in section 11.9.3. If MaxKey and MinKey were string types, we could check for equality, but then we lose track of the fact that this is an instance of a BSON type. Plus MaxKey would be less than or equal to MinKey. See discussion in |