Announcement

Collapse
No announcement yet.

JavaScript ES6 overview

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • JavaScript ES6 overview

    Is there an overview what functionality of ES6 is now supported in Mirth Connect 3.7.1?
    X Connections
    https://documentor.email
    https://www.x-connections.com

  • #2
    You'll find all details here

    Comment


    • #3
      It looks like mirth does not support.

      let
      Template literals

      Wondering if there are more differences with the link you mentioned.
      Last edited by mdehoog; 05-28-2019, 02:13 AM.
      X Connections
      https://documentor.email
      https://www.x-connections.com

      Comment


      • #4
        At least as long as es6 is enabled in the mirth properties file (rhino.languageversion = es6). Those features should be supported by the engine.

        However: It seems to me that they are not yet supported by the IDE. If you e.g. use let, it will be highlighted as an error but nevertheless work when you run the channel.

        This behavior becomes a bigger deal in other situations: When you e.g. define a function in a code template by using default values, the IDE does not even let you save the code template as it considers a function like functionName(parameter=DEFAULTVALUE){} as plain wrong.


        This seems to me a not so well tested feature in Mirth or at least a bug. Hopefully there will be a v3.7.2 soon, correcting this issue.

        Comment


        • #5
          I have added your remarks to my bug report in JIRA.
          http://www.mirthcorp.com/community/i...wse/MIRTH-4417
          X Connections
          https://documentor.email
          https://www.x-connections.com

          Comment


          • #6
            This page shows which features are and aren't supported by Rhino (and Mirth by extension)

            https://mozilla.github.io/rhino/compat/engines.html

            Comment


            • #7
              Progress

              Is there any progress on this with MC 3.8.1?
              X Connections
              https://documentor.email
              https://www.x-connections.com

              Comment


              • #8
                See:

                https://github.com/mozilla/rhino/issues/325
                https://github.com/mozilla/rhino/issues/243

                Comment

                Working...
                X