Is there any way of getting the current version of Rhino within the javascript it is interpreting?
This way:
var Context = org.mozilla.javascript.Context,
currentContext = Context.getCurrentContext(),
rhinoVersion = currentContext.getImplementationVersion();
print(rhinoVersion);
The output for the currently stable release:
Rhino 1.7 release 4 2012 06 18
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With