From eb28e789bac02c37c189571530da4888c6a6364b Mon Sep 17 00:00:00 2001 From: Milos Ljubinkovic Date: Tue, 13 Feb 2018 13:03:12 +0100 Subject: [PATCH] JS version to ES6 https://github.com/rabix/bunny/issues/421 --- .../expression/javascript/CWLExpressionJavascriptResolver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/rabix-bindings-cwl/src/main/java/org/rabix/bindings/cwl/expression/javascript/CWLExpressionJavascriptResolver.java b/rabix-bindings-cwl/src/main/java/org/rabix/bindings/cwl/expression/javascript/CWLExpressionJavascriptResolver.java index 0bb45b972..f5ed66af5 100644 --- a/rabix-bindings-cwl/src/main/java/org/rabix/bindings/cwl/expression/javascript/CWLExpressionJavascriptResolver.java +++ b/rabix-bindings-cwl/src/main/java/org/rabix/bindings/cwl/expression/javascript/CWLExpressionJavascriptResolver.java @@ -45,6 +45,7 @@ public static Object evaluate(Object context, Object self, String expr, CWLRunti } Context cx = Context.enter(); + cx.setLanguageVersion(Context.VERSION_ES6); cx.setOptimizationLevel(OPTIMIZATION_LEVEL); cx.setMaximumInterpreterStackDepth(MAX_STACK_DEPTH); cx.setClassShutter(new CWLExpressionDenyAllClassShutter());