While it's a bit of an edge-case with "in the wild BrightScript", it was previously possible for brs to accidentally mutate the arguments passed to a function while type-checking those arguments. Make a shallow copy of the provided arguments before performing type checking and type coercion.
While it's a bit of an edge-case with "in the wild BrightScript", it was previously possible for
brs
to accidentally mutate the arguments passed to a function while type-checking those arguments. Make a shallow copy of the provided arguments before performing type checking and type coercion.