Skip to content

Commit

Permalink
enable ES6 features (fixes #20 #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Jan 28, 2019
1 parent 50b03ee commit 551e3b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/processing/mode/p5js/p5jsBuild.java
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ static void handleFile(Sketch sketch, int codeIndex) throws SketchException {
options.set("anon.functions", true);
options.set("parse.only", true);
options.set("scripting", true);
options.set("language", "es6");

ErrorManager errors = new ErrorManager();
Context context = new Context(options, errors, Base.class.getClassLoader());
Expand Down
3 changes: 3 additions & 0 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ X update to 0.7.3
X update sound and dom libraries
_ Allow use of let and const in p5js-mode
_ https://github.com/fathominfo/processing-p5js-mode/issues/20
_ seems to be supported as of 8u40?
_ https://bugs.openjdk.java.net/browse/JDK-8046038
_ https://developer.oracle.com/databases/nashorn-javascript-part1
_ p5.js sketch breaks when I save it (looks like issue with 'let')
_ https://github.com/fathominfo/processing-p5js-mode/issues/18
_ update examples
Expand Down

0 comments on commit 551e3b9

Please sign in to comment.