[SERVER-7344] Provide function/variable interface for determining what javascript interpreter the shell and server are compiled with Created: 12/Oct/12  Updated: 05/Nov/15  Resolved: 17/Oct/12

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: None
Fix Version/s: 2.3.0

Type: Improvement Priority: Minor - P4
Reporter: Randall Hunt Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-2407 Switch to v8 Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Provide a convenient interface for determining which interpreter is running on the shell and the server.

Something along these lines:

>_interpreterVersion
"V8 3.12"

AND

>db.getServerJSInterpreterVersion()
{"version": "V8 3.12"}



 Comments   
Comment by auto [ 17/Oct/12 ]

Author:

{u'date': u'2012-10-16T12:18:19-07:00', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-7344 add interpreterVersion to shell and buildInfo

Add the ability to get a string for the JavaScript engine so that
scripts can know when they are running under SpiderMonkey versus V8.
The shell gets an 'interpreterVersion()' function that returns a string.
The 'buildInfo' command gets a new field named 'interpreterVersion'.
SpiderMonkey returns "SpiderMonkey 1.7"; V8 returns "V8 3.12.19".
Branch: master
https://github.com/mongodb/mongo/commit/3e4f2ab253a717240c101478c022ac667db74cfd

Comment by Andy Schwerin [ 13/Oct/12 ]

Belongs in serverStatus?

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