Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Client Async Functions

Ararana
Tera Expert

Does ServiceNow not support client-side async functions in UI Pages? Getting the following error:

 

Ararana_0-1665696722154.png

 

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, 'async function' is supported @ ECMAScript 2017 or later, and ServiceNow currently supports ECMAScript 5
As of Tokyo the platform supports  ECMAScript 2021 for 'scoped apps'
but the doc's state that async function constructor is disallowed.

JavaScript engine feature support (servicenow.com)

 

 

View solution in original post

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, 'async function' is supported @ ECMAScript 2017 or later, and ServiceNow currently supports ECMAScript 5
As of Tokyo the platform supports  ECMAScript 2021 for 'scoped apps'
but the doc's state that async function constructor is disallowed.

JavaScript engine feature support (servicenow.com)