Upgrade to ECMAScript 12

Swathi Prasad
ServiceNow Employee
ServiceNow Employee

I am trying to use ES12 in my application's script include, throws me "com.glide.script.RhinoEcmaError: let is an ECMAScript 6 feature - not supported" error.
I have seen posts where it says change "Javascipt mode" in the application. But I see only two of the modes. PS: my vsf instance is on Utah version.

Screen Shot 2023-03-03 at 4.50.28 PM.png


Could someone please guide me on how to upgrade an existing application to ES12?

1 ACCEPTED SOLUTION

Fazal Mohammad
ServiceNow Employee
ServiceNow Employee

Hi @Swathi Prasad 

 

Can you please open below link once and check if there are 3 records are there and in all of them inactive column is false?

 

http://<YOUR-INSTANCE-NAME>/sys_choice_list.do?sysparm_query=nameINjavascript%3AgetTableExtensions('sys_package')%5Eelement%3Djs_level&sysparm_view=

 

Note: In place of YOUR-INSTANCE-NAME, give the appropriate value.

 

Thanks

Fazal

View solution in original post

4 REPLIES 4

Fazal Mohammad
ServiceNow Employee
ServiceNow Employee

@Swathi Prasad Can you please confirm the version of the instance , using stats.do ?

Ideally instances from Tokyo (Including Tokyo), should have 3rd option of  ECMASCript 2021, as posted here.

 

Please mark helpful, if this answers your quetion.

 

Thanks

Fazal

Hi @Fazal Mohammad , thank you for the reply. Pls refer the screenshot, I hope this has the version of the instance 

Screen Shot 2023-03-05 at 6.00.09 PM.png

ā€ƒ

 

Fazal Mohammad
ServiceNow Employee
ServiceNow Employee

Hi @Swathi Prasad 

 

Can you please open below link once and check if there are 3 records are there and in all of them inactive column is false?

 

http://<YOUR-INSTANCE-NAME>/sys_choice_list.do?sysparm_query=nameINjavascript%3AgetTableExtensions('sys_package')%5Eelement%3Djs_level&sysparm_view=

 

Note: In place of YOUR-INSTANCE-NAME, give the appropriate value.

 

Thanks

Fazal

Swathi Prasad
ServiceNow Employee
ServiceNow Employee

@Fazal Mohammad Bingo, that was the problem, ECMASCript 2021 was inactive, made it active, now I see the 3rd option. Thank you for your help!