web stats
JavaScript ES6 overview - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2019, 06:59 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default 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
Reply With Quote
  #2  
Old 05-26-2019, 11:17 PM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 157
odo is on a distinguished road
Default

You'll find all details here
Reply With Quote
  #3  
Old 05-27-2019, 09:48 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

It looks like mirth does not support.

let
Template literals

Wondering if there are more differences with the link you mentioned.
__________________
X Connections
https://documentor.email
https://www.x-connections.com

Last edited by mdehoog; 05-28-2019 at 03:13 AM.
Reply With Quote
  #4  
Old 05-28-2019, 05:31 AM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 157
odo is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 05-30-2019, 07:02 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

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
Reply With Quote
  #6  
Old 05-30-2019, 12:54 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,106
agermano is on a distinguished road
Default

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

https://mozilla.github.io/rhino/compat/engines.html
Reply With Quote
  #7  
Old 12-12-2019, 11:01 AM
mdehoog mdehoog is offline
Mirth Guru
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 301
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default Progress

Is there any progress on this with MC 3.8.1?
__________________
X Connections
https://documentor.email
https://www.x-connections.com
Reply With Quote
  #8  
Old 12-12-2019, 01:58 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,106
agermano is on a distinguished road
Default

See:

https://github.com/mozilla/rhino/issues/325
https://github.com/mozilla/rhino/issues/243
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:58 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation