diff options
author | Matt Valentine-House <[email protected]> | 2024-11-11 12:04:12 +0000 |
---|---|---|
committer | Matt Valentine-House <[email protected]> | 2024-11-14 10:46:36 +0000 |
commit | 42501015b4ffac67671cc5e1daedbacf5840d71b () | |
tree | 8d40108e534a4614f52177200f410d4bfa333df5 /gc.rb | |
parent | 6795fc4981d29e10da73a9eb23069d7f914115da (diff) |
rb_raise when attempting to set the GC implementation name
Instead of silently ignoring the key, we should raise to clearly tell the user that this key is read-only.
Notes: Merged: https://.com/ruby/ruby/pull/11872
-rw-r--r-- | gc.rb | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -306,7 +306,15 @@ module GC def self.config hash = nil return Primitive.gc_config_get unless hash - Primitive.gc_config_set hash end # call-seq: |