Ensure class method pointers are zero'd on creation
This commit is contained in:
parent
d44f080260
commit
2a01172aec
7
object.c
7
object.c
@ -242,6 +242,13 @@ KrkClass * krk_newClass(KrkString * name) {
|
||||
_class->_call = NULL;
|
||||
_class->_init = NULL;
|
||||
_class->_eq = NULL;
|
||||
_class->_len = NULL;
|
||||
_class->_enter = NULL;
|
||||
_class->_exit = NULL;
|
||||
_class->_delitem = NULL;
|
||||
_class->_iter = NULL;
|
||||
_class->_getattr = NULL;
|
||||
_class->_dir = NULL;
|
||||
|
||||
return _class;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user