JavaScript engine on the platform
The JavaScript engine that evaluates server-side scripts supports the ECMAScript 2021 (ES12) standard.
No plugins or properties are required to install the new JavaScript engine.
The benefits of the new engine are:
- Modern library code and scripting features, such as optional chaining, destructuring, const and let declarations, and arrow functions
- Follows standard ECMAScript 2021 behavior
What to know
The JavaScript engine provides an improved environment for developing scripts.
- Beginning with the Xanadu release, when you create new scripts, ECMAScript 2021 (ES12) mode is turned on by default regardless of the JavaScript mode configured for the application.
- Beginning with the Tokyo release, new and existing scoped applications can run in ECMAScript 2021 (ES12) mode.
- Compatibility mode supports the legacy modifications to the legacy JavaScript engine.
- Legacy code continues to work.
You configure the mode that the JavaScript engine uses in the design and runtime settings for applications. Available modes are ECMAScript 2021 (ES12), ES5 Standards, and Compatibility.
- JavaScript modes
JavaScript mode is a design and runtime setting for custom applications and scripts. To support existing server-side scripts and new scripts developed to the ECMAScript 2021 standard, the JavaScript engine has three modes: ECMAScript 2021 (ES12), ES5 Standards, and Compatibility. - JavaScript engine feature support
Compare ECMAScript features between the ECMAScript 2021 (ES12) and ES5 Standards JavaScript modes in Australia. Both modes support a subset of ECMAScript features. - Updates to the JavaScript engine in Australia
Review the updates to the JavaScript engine on the ServiceNow AI Platform in the Australia release.
Parent Topic:Server-side scripting
Related topics