cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

ES6 Flag features enabled in Thingworx Rhino

ES6 Flag features enabled in Thingworx Rhino

1. What version of Thingworx are you currently running?
9.2


2. Describe the problem you are trying to solve. Please include detailed documentation such as screenshots, images or video.
 ThingWorx uses Rhino Javascript 1.7.11, and supports a number of ECMAScript ES6/ES2015 features. Some features like "set", could work but " requires VERSION_ES6 flag”. It would be great to have the option to enable this flag in the Thingworx settings.

3. What business value would your suggestion represent for your organization?
Ability to use newer Javascript functions that will speed up the development.

6 Comments
olivierlp
Community Manager
Status changed to: Acknowledged

Hello,
Thank you for your idea and the information provided.

cbaldwin
13-Aquamarine
Status changed to: Under Consideration

We are evaluating updates to Rhino and other JavaScript engines in future versions of the platform.

carloquinonez
6-Contributor

I agree it would be awesome to be able to use modern JS conventions like string templates and property shorthand.

carloquinonez_0-1647974365831.png

carloquinonez_1-1647974371672.png

 

 

MR_9797354
3-Visitor

I aggree as I really miss the Set and other types.

Any news about this topic?

 

gagarux
4-Participant

This would be very useful since there are ES6 features (such as Promises) that would enhance script functionality in ThingWorx. Also, is it possible to publish a document describing how to upgrade to the latest Rhino version in ThingWorx?

OldGoat
12-Amethyst

And provide FULL documentation of available functions, keywords, etc.., so we don't have to keep guessing what is and is not available...PLEASE???