Path to ES6, ES7?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2017 11:33 AM
Is there current roadmap to upgrade the platform to ES6, or 7? I know Helsinki upgraded it to ES5.
- 15,892 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018 06:43 AM
I submit that we already have this - only better because it does language translation.
As a best practice, you shouldn't be creating hard coded strings and displaying them to users (on the screen, email, etc.) instead use gs.getMessage() to translate the string for you. Using this, you can also pass parameters that get substituted in to the string.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018 07:25 AM
gs.getMessage is great, but string templates it is not only thing added in es6. how about arrow functions or defaut parameter values in functions? scoped variables ('let'), for-of loop on arrays and spread operator ('...') ? new class definition (by 'class'keyword), generators (those with 'yield')!
it would be great to use in server scripts all new js features.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2018 04:00 PM
Chuck:
London? Madrid? jshint? It would be nice if we got just some of the feature set!
/*jshint esversion: 6 */ <-- Please?! At the very least.
BTW, try this out: /*jshing esnext: true */
It has been deprecated in the current ecma world, but still works in ServiceNow (server-side code)
Also to alleviate some of the pain:
https://community.servicenow.com/community?id=community_blog&sys_id=fd5d6629dbd0dbc01dcaf3231f961989
http://es6-features.org/#Constants
Steven.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2018 02:31 AM
Hi Chuck,
Any feedback from platform team ?
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2018 07:04 AM
Any update on this? ES6 really does provide a great amount of convenience and generally allows for better code