Restore cfunction arity in builtins/0
Count arguments up-front at definition/invocation instead of doing it at
bind time, which comes after generating builtins/0 since e843a4f.
This commit is contained in:
1 parent
abed751e96
commit
3ea0199e03
2 files changed
+23
-18
No files matched your search
@@ -1646,4 +1646,19 @@ index("")
|
||||
""
|
||||
null
|
||||
|
||||
# check that dead code removal occurs after builtin it generation
|
||||
builtins|length > 10
|
||||
null
|
||||
true
|
||||
|
||||
"-1"|IN(builtins[] / "/"|.[1])
|
||||
null
|
||||
false
|
||||
|
||||
all(builtins[] / "/"; .[1]|tonumber >= 0)
|
||||
null
|
||||
true
|
||||
|
||||
builtins|any(.[:1] == "_")
|
||||
null
|
||||
false
|
||||
Reference in new issue
Block a user