[SERVER-19705] SpiderMonkey error codes overlap with Mongo error codes in thrown user assertions Created: 31/Jul/15  Updated: 19/Sep/15  Resolved: 10/Aug/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 3.1.7
Fix Version/s: 3.1.7

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-19682 Prevent JSThread exceptions in concur... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 7 08/10/15
Participants:

 Description   

Our SpiderMonkey integration layer throws Mongo style user assertions with Mongo Error Codes. It uses a facility shared with SpiderMonkey when it has to round trip errors through javascript, and here we find collisions.

We should lift our errors above all of SpiderMonkey's errors to avoid conflicts



 Comments   
Comment by Githook User [ 10/Aug/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-19705 unmix MozJS and Mongo Error Codes

SpiderMonkey error codes overlap with Mongo error codes in thrown user
assertions. Avoid that by lifting our error codes above theirs.
Branch: master
https://github.com/mongodb/mongo/commit/df71fbb001ce204c9f60b9ec66b1178b851cdbb4

Generated at Thu Feb 08 03:51:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.