Turn on ECMAScript 2021 (ES12) mode - Xanadu

pramodkumar
Tera Expert

Hi All,

After upgrading to Xanadu, we see "Turn on ECMAScript 2021 (ES12) mode "  in all scripts. It is turned off by default on all scripts.  Is it fine to leave all existing scripts turn off this mode?

Can someone explain with an example of how this Turn on ECMAScript 2021 (ES12) mode works?

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@pramodkumar 

good explanation here

ECMAScript 2021 (ES12) mode in individual script… there's an undocumented catch you need be aware of 

Tokyo introduces ECMAScript 2021 (ES12/ecma6+) 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@pramodkumar 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@pramodkumar 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@pramodkumar 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader