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

@@ -615,7 +615,6 @@ void bootstrap_types() {
add_builtin_field(ARGON_METHOD_TYPE, __base__, BASE_CLASS);
add_builtin_field(ARGON_METHOD_TYPE, __name__,
new_string_object_null_terminated("method"));
create_ARGON_NUMBER_TYPE();
add_builtin_field(
BASE_CLASS, __new__,
@@ -695,6 +694,7 @@ void bootstrap_types() {
BASE_CLASS, __set_attr__,
create_argon_native_function("__set_attr__", BASE_CLASS___set_attr__));
create_ARGON_DICTIONARY_TYPE();
create_ARGON_NUMBER_TYPE();
}
void add_to_hashmap(struct hashmap_GC *hashmap, char *name, ArgonObject *value) {