Book a Demo

Author Topic: Supported Javascript and JScript versions?  (Read 5916 times)

Michael Junkin

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Supported Javascript and JScript versions?
« on: November 18, 2014, 10:41:59 am »
I’m writing an EA script in (what’s claimed to be) Javascript. However, a number of key builtin functions don’t seem to be supported, such as Object.getOwnPropertyNames.

Can anyone tell me which version of the Javascript is supported by SSProfiler32 (and SSProfiler75). Is it really a JScript interpreter that’s running the Javascript? Or is it JScript? After all, JScript (which I haven’t used and am therefore not very familiar with) does not appear to support getOwnPropertyNames despite it being in the ECMAScript standard (version 5).

Not knowing which programming language I’m using is slowing me down somewhat  :)

Thanks in advance

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Supported Javascript and JScript versions?
« Reply #1 on: November 18, 2014, 11:59:51 am »
There are a couple of places in the EA help that include "JavaScript (Mozilla), VBScript and JScript (Microsoft)". So it's definitely JavaScript.

I don't know the version precisely, but I can see references to support of ECMAScript version 3.
« Last Edit: November 18, 2014, 12:00:21 pm by simonm »

Michael Junkin

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Supported Javascript and JScript versions?
« Reply #2 on: November 19, 2014, 11:35:14 am »
Information from EA: EA SSProfiler32 and SSProfiler75 are based on SpiderMonkey 1.8, which implements Javascript 1.8.
« Last Edit: November 19, 2014, 11:36:12 am by mjunkin »

daniel.levy

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Supported Javascript and JScript versions?
« Reply #3 on: June 14, 2017, 02:41:30 am »
Hi everybody,

I've got exactly the same question that Michael Junkin : which version of the Javascript is builted-in EA13 ?

The answer from Sparx was  on November 19, 2014 : "EA SSProfiler32 and SSProfiler75 are based on SpiderMonkey 1.8, which implements Javascript 1.8.".

But, is it always the same in EA 13.0.1310 today (2017, June the 13th) ?

How can we know wich functions are allowed in JavaScript within EA 13 ?

Best Regards,

Daniel
D. LEVY