- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 04:44 AM - edited 08-05-2024 04:55 AM
Hello,
The Xanadu highlights in docs state:
- Use ECMAScript 2021 (ES12) features in any server-side script.
I understand this to also mean Global scope, in scoped apps this has been available since Tokyo. I spun up a PDI which is running on build `glide-xanadu-07-02-2024__patch0-07-16-2024`
Apart from `const` and `let` no new ES features seem to be working. I was trying template literals, for...of loop, arrow function and spread operator. I tried running both in a Fix Script so I could make sure the ES12 toggle was on, and in background script. But the result isn't good.
Script compilation error: Script Identifier: null.null.script, Error Description: syntax error (null.null.script; line 4), Script ES Level: 0, Interpreted Mode: true
bg script
fix script
In a scoped app the same script runs like a charm
The docs also state "No plugins or properties are required to install the new JavaScript engine." So what gives? Any ideas?
edit: maybe this post went into a wrong category - idk how to change it though
Solved! Go to Solution.
- 5,951 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 05:23 AM - edited 11-15-2024 05:24 AM
Still not working in Patch 3 (glide-xanadu-07-02-2024__patch3-10-23-2024)
Got reply from SN:
Thank you for your patience on this. At this stage, we could see that the Defect has been waived for Yokohama and Targeted to Zurich.
Will keep you posted as soon as the fix is available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 05:28 AM - edited 03-14-2025 05:28 AM
ServiceNow finally acknowledged that the feature indeed does not work:
KB1699139 + Related Problem: PRB1794568
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1699139
No info on when it'll be fixed though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 03:27 AM
Hi @NS
I can say that for my initial test in a fix script in Zurich patch 0 it works in the global scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 02:15 AM
I tested it both ways, it was just easier to take a screenshot that way so that it would show all relevant elements.
But I can't say that I agree with the comment about the background scripts, because of the way they've put it in the release note highlights: "Use ECMAScript 2021 (ES12) features in any server-side script."
It'll be interesting to see when SN gets back to me regarding this topic. In the past I haven't bothered looking into early availability versions, so I wonder how many of the bugs are still present on actual launch?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 02:58 AM
Just tested this in a newer version `glide-xanadu-07-02-2024__patch1-08-24-2024`, ES12 mode is still not working in global scope
Script compilation error: Script Identifier: <refname>, Error Description: destructuring assignment is an ECMAScript 6 feature - not supported (<refname>; line 12), Script ES Level: 0, Interpreted Mode: true
Javascript compiler exception: destructuring assignment is an ECMAScript 6 feature - not supported (<refname>; line 12) in:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 03:27 AM
bummer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 03:43 AM
@Earl Duque bump?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 03:18 AM
And got confirmation from SN support that it this indeed is broken still - not just for me.
Thank you for the follow up on this, Development team is working on this as part of the PRB. The fix has not been implemented yet, will keep you posted as soon as the planned date is provided.