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:
Muh Muhten authored and Nico Williams committed 2019-02-26 22:39:57 -06:00
1 parent abed751e96
commit 3ea0199e03
2 files changed
+23 -18

No files matched your search

+15
View File
@@ -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