ScriptCraft icon indicating copy to clipboard operation
ScriptCraft copied to clipboard

ES6 support

Open Danielduel opened this issue 8 years ago • 4 comments

Hello, do you plan ES6 support? If you will apply code transformer - I can hook into it with BabelJS

Danielduel avatar Jan 11 '17 09:01 Danielduel

ES6 support is natively implemented in JDK9: https://bugs.openjdk.java.net/browse/JDK-8066046

You could try to install that version of Java, and see if it works.

SEAPUNK avatar Jan 11 '17 15:01 SEAPUNK

I'm on the list of notifications for OpenJDK issues. Based on what I've seen, I don't think 1.9 will be used in general production for a while. It's just not mature enough. Most people are still considering migration from 1.7 to 1.8 or learning the nuances of 1.8. So my vote for now would be to hold on support for 1.9. It's just not necessary to jump into that pool of dirty water yet.

TonyGravagno avatar Jan 14 '17 22:01 TonyGravagno

FYI : v1.7 is dead. v1.9 isn't here yet. So I'm building with JDK 1.8.141+ I'm also transitioning the code to be Nashorn-specific, rather than getting a generic "javascript" engine.

TonyGravagno avatar Aug 24 '17 01:08 TonyGravagno

You can code with ES6 using this: https://blog.magikcraft.io/how-to-mod-minecraft-without-java-f076ddaec01c

Including executing ES6/TypeScript at the server console.

jwulf avatar Apr 22 '19 12:04 jwulf