On 05/02/2018 10:35, Vincent LEPETIT wrote:
Thanks for advice. I just simply follow this description and the exemples :
https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array/filter
After some research it’s seem to be a javasript langugae version problem on my
Debian Wheezy distrib.
Because some fonctionnality that i use in this code, like Math.max seem to be
call in oldest way :
http://www.jstips.co/en/javascript/calculate-the-max-min-value-from-an-array/
this ES2105 way don’t work
var DateDepartMax = Math.max(...DatesDepart);
but this :
var DateDepartMax = Math.max.apply(null,DatesDepart);
seem to work
And the fonction array filter seem to do not are implemented in my current
javascript language version…
So i have 3 options :
1 - update my distrib, but it's need some stuff
2 - update javascript language in my actual distrib but i don’t know if it’s
possible and if it’s simply way
3 - Modify my script to be compliant whis my javascript language version ( and
i don’t know what version of javascript i use..)
I continu to search.
Which java version do you use ? LSC used js script engine embeded in the JVM.
--
Soisik
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users