Skip to content

vector: Allow negative and out-of-range slice indices

James Westman requested to merge jwestman/libshumate:fix-slice into main

Previously, the "slice" expression returned an error if indices were negative or out of range, but to match MapLibre, we want the ECMAScript behavior of counting negative indices from the end and clamping the index rather than failing.

Merge request reports