You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(checker): validate sortBy order argument type (#912)
The sortBy and sort functions accept an optional order argument that
must be "asc" or "desc". Previously, passing a non-string value would
cause a panic due to an unsafe type assertion in the VM. This adds
compile-time validation in the type checker and defensive runtime
checks in both the VM and builtin implementations to return proper
errors instead of panicking.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
0 commit comments