arraySlice should not give error when going beyond array length

Lucee’s array slice is a little different than javascript’s slice function. The third argument is the length in Lucee but end position in javascript. I have no issue with that but javascript does not throw an error when going beyond array length. Both Lucee and Coldfusion gives an error. Compatibility wise okay, but ideally it should not throw an error but it should return available items. What do you guys think?

I think it is consistent with this giving an error