mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
parent
10d06b9a72
commit
91a10c0757
Notes:
git
2025-02-04 21:25:41 +00:00
1 changed files with 1 additions and 1 deletions
|
@ -859,7 +859,7 @@ wkmap_aset(VALUE self, VALUE key, VALUE val)
|
|||
TypedData_Get_Struct(self, struct weakkeymap, &weakkeymap_type, w);
|
||||
|
||||
if (!FL_ABLE(key) || SYMBOL_P(key) || RB_BIGNUM_TYPE_P(key) || RB_TYPE_P(key, T_FLOAT)) {
|
||||
rb_raise(rb_eArgError, "WeakKeyMap must be garbage collectable");
|
||||
rb_raise(rb_eArgError, "WeakKeyMap keys must be garbage collectable");
|
||||
UNREACHABLE_RETURN(Qnil);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue