Skip to Content
0
Nov 09, 2018 at 09:24 AM

openui5_preload does not support some JS statements introduced by ECMAscript 6

80 Views

Hi,

the following JS statements (introduced by ECMAscript 6) cause an error in the creating preload task:

1) optional paramaters in functions (test: function (a, b=null, c="test") { //dosomething }), see http://es6-features.org/#DefaultParameterValues

2) arrow functions (var test = a.map( s => s.length );), see http://es6-features.org/#ExpressionBodies

Is it planned to support these kind of statements?

Thanks & Best Regards

Dominik