Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtScript and ECMAScript version
Qt 6.11 is out! See what's new in the release blog

QtScript and ECMAScript version

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 5.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi everyone. I've searched but didn't found anywhere the answer.
    Is QtScript compatibile with ECMA-262 5th Edition or it is based on older versions.

    Thanks

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      I don't know. But this quote from standard:

      bq. 15: In Edition 5, the following new properties are defined on built-in objects that exist in Edition 3:
      Object.getPrototypeOf, Object.getOwnPropertyDescriptor, Object.getOwnPropertyNames,
      Object.create, Object.defineProperty, Object.defineProperties, Object.seal,
      Object.freeze, Object.preventExtensions, Object.isSealed, Object.isFrozen,
      Object.isExtensible, Object.keys, Function.prototype.bind, Array.prototype.indexOf,
      Array.prototype.lastIndexOf, Array.prototype.every, Array.prototype.some,
      Array.prototype.forEach, Array.prototype.map, Array.prototype.filter,
      Array.prototype.reduce, Array.prototype.reduceRight, String.prototype.trim, Date.now,
      Date.prototype.toISOString, Date.prototype.toJSON.

      I think you can check any from this methods on existing, if it exist then QtScript base on 5th edition else not.

      --
      Vasiliy

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Thanks Vass. That's what I was looking for. can you provide me the link where you find this?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vsorokin
          wrote on last edited by
          #4

          Here: http://www.ecma-international.org/publications/standards/Ecma-262.htm
          P.S When you will find out what version, can you write this here?

          --
          Vasiliy

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            [quote author="Vass" date="1303423377"]Here: http://www.ecma-international.org/publications/standards/Ecma-262.htm[/quote]

            oh ok. I though there was somewhere in Qt documentation. I knew about those properties. For the moment I was just testing the waters, to see if it's worth to start my application, but I think you're right. I will just check those new proprieties to see if they work.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on last edited by
              #6

              AFAIR 3rd edition was used in QtScript.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved