You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2022/11/11 12:52:41 UTC

[couchdb] 01/01: Show version of spidermonkey runtime

This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch runtime-sm-version
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 7a1707333a8c46b8209b5e7bb2b8d3ce48de6ef5
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Fri Nov 11 13:52:23 2022 +0100

    Show version of spidermonkey runtime
---
 src/couch/priv/couch_js/86/help.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/couch/priv/couch_js/86/help.h b/src/couch/priv/couch_js/86/help.h
index 6a23172af..8af5a1902 100644
--- a/src/couch/priv/couch_js/86/help.h
+++ b/src/couch/priv/couch_js/86/help.h
@@ -16,7 +16,7 @@
 #include "config.h"
 
 static const char VERSION_TEMPLATE[] =
-    "%s - %s (SpiderMonkey 86)\n"
+    "%s - %s (SpiderMonkey %s)\n"
     "\n"
     "Licensed under the Apache License, Version 2.0 (the \"License\"); you may "
         "not use\n"
@@ -60,7 +60,8 @@ static const char USAGE_TEMPLATE[] =
             stdout,              \
             VERSION_TEMPLATE,    \
             basename,            \
-            PACKAGE_STRING)
+            PACKAGE_STRING,      \
+            JS_GetImplementationVersion())
 
 #define DISPLAY_VERSION couch_version(BASENAME)