Upgrading an application to ECMAScript 2021

Tim D Scott
Giga Guru

Hi All.

 

I have a scoped application that was developed on Quebec, so the Javascript mode is set to "ESS Standards Mode".

 

I would like to change the mode to "ECMAScript 2021" to start utilizing some of the new Javascript functionality.

 

Please advise if upgrading an existing app is seen as good practice. Has anyone done this and experienced any issues? Is there anything else I should be aware of?

 

Thanks!

 

Tim.

1 ACCEPTED SOLUTION

Yes, there's always a risk..

There is this documentation, however I doubt it'll make much sense..

JavaScript engine feature support (servicenow.com)

 

A bit more high-over is highlighted here:

JavaScript modes (servicenow.com)


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

4 REPLIES 4

Peter Bodelier
Giga Sage

Hi @Tim D Scott,

 

There is not really a good or bad practice here.

If you want or need the advantages that ECMAScript 2021 has, then please make the switch. 🙂
Of course you will need to test, if your application keeps working without issues, as you may use code which is not supported anymore.

Apart from that there should not be any issues.

I've changed this setting for a couple of my apps without any issues so far.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Thanks, Peter, so it sounds like there may be a risk of something breaking, do you know of any documentation that highlights the unsupported functionality?

Yes, there's always a risk..

There is this documentation, however I doubt it'll make much sense..

JavaScript engine feature support (servicenow.com)

 

A bit more high-over is highlighted here:

JavaScript modes (servicenow.com)


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Thanks again Peter, I had a look over the documentation and it seems like my app will be OK. Will give it a go and see what happens 👍