fix: validate builtin arity before argument access

This commit is contained in:
Hermes Agent
2026-09-22 02:11:21 +00:00
parent b77dd4dacc
commit 52a7ca5ff4
4 changed files with 75 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
math.abs needs 1 argument, but got 0. Try: CALL math.abs WITH value.
math.clamp needs 3 arguments, but got 2. Try: CALL math.clamp WITH value, lower, upper.
random.seed needs 1 argument, but got 0. Try: CALL random.seed WITH value.
random.int needs 2 arguments, but got 1. Try: CALL random.int WITH lower, upper.