Does the TextFile rule support ES6 syntax for javascript

We’re trying to add a block of javascript in a header. We’re getting a parse error on the => token. Does Pega support Es6 syntax or is this at the browser level?

@DPCLARK12 Pega Platform allows you to add custom JavaScript to your application. However, the support for ES6 syntax is primarily dependent on the browser that the application is running on. Pega Platform supports modern browsers that are compatible with ES6, such as Microsoft Edge Chromium, Mozilla Firefox, Apple Safari, and Google Chrome.

This is a GenAI-powered tool. All generated answers require validation against the provided references.

Custom JavaScript in application design

Pega Platform client operating system and browser support > Browser support

Browser developer tools > Supported browsers