Javascript 1.7 in Thingworx Server-side script
Hello,
I'm trying to use server-side script more effectively, but I got some troubles on that.
First, As I have known, Thingworx Server-side script uses Rhino 1.7R4 which is based on Javascript 1.7. Then the script should support the functions of Javascript 1.7 such as "let".
But when I use the "let" statement in the script, it comes out "Sytanx Error". I think Rhino has no problem on that, then is this problem of javascript syntax checker of Thingworx?
Second, This is similar problem with above. If I use "for ~ in" statement on Array, then It makes the output weird.
Example codes is below.
---
1) Syntax Error of "let"

---
2) Error of "for each ~ in". it outputs unknown sentence starts with "_function".

If anybody knows this kind of problems and reasons, please reply. Thanks.

