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
+26
View File
@@ -0,0 +1,26 @@
IMPORT "lib/math.claro" AS math
IMPORT "lib/random.claro" AS random
TRY
CALL math.abs
CATCH
ENDTRY
SAY LASTERROR
TRY
CALL math.clamp WITH 1, 0
CATCH
ENDTRY
SAY LASTERROR
TRY
CALL random.seed
CATCH
ENDTRY
SAY LASTERROR
TRY
CALL random.int WITH 1
CATCH
ENDTRY
SAY LASTERROR