fix seg fault when callng a function with not enough parameters

This commit is contained in:
William Bell
2025-10-22 03:52:47 +01:00
parent a9b1d23f79
commit b6714b390a
6 changed files with 13 additions and 5 deletions

View File

@@ -35,6 +35,8 @@ const char *built_in_field_names[BUILT_IN_FIELDS_COUNT] = {
"__class__",
"__name__",
"", // above is anything that gets stored in built in slots
"__binding__",
"__function__",
"__add__",
"__string__",
"__subtract__",
@@ -44,8 +46,6 @@ const char *built_in_field_names[BUILT_IN_FIELDS_COUNT] = {
"__init__",
"__boolean__",
"__get_attr__",
"__binding__",
"__function__",
"address",
"__call__",
"__number__",