Check JavaScript version in server-side

mloobo
Mega Contributor

Hi all,

I would like to know where, in my ServiceNow instance, I can check the JavaScript engine version that is running in the server side.

Thank you.

Regards,

Marcos.

12 REPLIES 12

Hi Marcos,

 

You can check the JavaScript engine version from the "My Company Application" module, there if you open any of the application you can see JavaScript Mode. 

 

Thanks & Regards,

 

P. Senthil Nathan.

 

Hi Priyadarshini,



Below link has the information related to the JavaScript engine on Jakarta Version:



JavaScript engine upgrade



You can find the JavaSAcript engine based on your instance version on https://docs.servicenow.com/   or wiki.


Hi Ajay,



Thank you for your answer. Could you provide the exact links for each ServiceNow version?



Regards,


Marcos.


Hi Marcos,



I guess after Geneva the JavaScript engine is based upon Rhino version 1.7 R5.



You can refer this link for more information



JavaScript engine upgrade



I searched in Helsinki and Istanbul for JavaScript engine information. It had similar information.




Ajay is correct, they're essentially the same for every version on the docs site. Here are the links for every supported version.



Kingston - N/A


Jakarta JavaScript engine upgrade


Istanbul JavaScript engine upgrade


Helsinki JavaScript engine upgrade


Geneva - N/A



Here is a blog entry announcing it for Helsinki - ECMAScript 5 in ServiceNow Helsinki!


I can personally confirm functions like String.prototype.trim() which are ECMAScript 5.1 doesn't work in my Jakarta Patch 5 instance. Feel free to try yourself. String.prototype.trim() - JavaScript | MDN Maybe once I have more time I'll test some later version ECMAScript functions as well.



Also I believe ServiceNow isn't even on the latest version of Prototype.js (what they use for script include definitions). Since we don't have access to the newer stuff. http://prototypejs.org/learn/


http://prototypejs.org/learn/



You're probably aware for client scripts, you're limited to the user's browser supportability also, for instance String.prototype.contains() may not work in IE but does in Chrome.



Just my speculation - it'll probably be at least London until we see another script engine improvement.