merge revision(s) 91a10c07579f282a94e4b5830feaeca87f9a7dd3: [Backport #21112]

Fix a typo in WeakKeyMap argument error

	[Bug #21112]
This commit is contained in:
Takashi Kokubun 2025-02-13 21:14:14 -08:00
parent 319c3c7038
commit e3b16320e6
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
#define RUBY_PATCHLEVEL 24
#define RUBY_PATCHLEVEL 25
#include "ruby/version.h"
#include "ruby/internal/abi.h"

View File

@ -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);
}