[SERVER-32824] Incorrect interpreterVersion() reported in mongo shell Created: 22/Jan/18  Updated: 30/Oct/23  Resolved: 20/Mar/18

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 3.4.10, 3.6.2
Fix Version/s: 3.7.4

Type: Bug Priority: Trivial - P5
Reporter: Stennie Steneker (Inactive) Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-23358 Upgrade SpiderMonkey to 45.0.2 ESR Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2018-03-26
Participants:

 Description   

Per SERVER-23358, SpiderMonkey was upgraded from ESR 38 to ESR 45.0.2 for the MongoDB 3.4 release.

However, the version appears to have been left hardcoded at the old value in mongo/scripting/mozjs/engine.cpp so interpreterVersion() in the mongo shell will incorrectly report "MozJS-38".



 Comments   
Comment by Benjamin Caimano (Inactive) [ 20/Mar/18 ]

Switched to use a macro provided from MozJS. It should automatically change in the future.

Comment by Githook User [ 20/Mar/18 ]

Author:

{'email': 'ben.caimano@10gen.com', 'name': 'Ben Caimano'}

Message: SERVER-32824 Incorrect interpreterVersion() reported in mongo shell

Switched hardcoded string to follow major version
Branch: master
https://github.com/mongodb/mongo/commit/6622688c3a1be6555dc9279850a6d1c0cbfa3a7d

Generated at Thu Feb 08 04:31:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.