summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorÉtienne Barrié <[email protected]>2024-05-27 11:22:39 +0200
committerJean Boussier <[email protected]>2024-05-28 07:32:33 +0200
commit1376881e9afe6ff673f64afa791cf30f57147ee2 (patch)
treea5ad297473381ac00c593ca2ca1ef93381fd3a00 /error.c
parent2114d0af1e5790da365584a38ea7ee58670dc11b (diff)
Stop marking chilled strings as frozen
They were initially made frozen to avoid false positives for cases such as: str = str.dup if str.frozen? But this may cause bugs and is generally confusing for users. [Feature #20205] Co-authored-by: Jean Boussier <[email protected]>
Diffstat (limited to 'error.c')
-rw-r--r--error.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/error.c b/error.c
index 4398019b40..6d79f789d2 100644
--- a/error.c
+++ b/error.c
@@ -3884,11 +3884,6 @@ rb_error_frozen_object(VALUE frozen_obj)
{
rb_yjit_lazy_push_frame(GET_EC()->cfp->pc);
- if (CHILLED_STRING_P(frozen_obj)) {
- CHILLED_STRING_MUTATED(frozen_obj);
- return;
- }
-
VALUE debug_info;
const ID created_info = id_debug_created_info;
VALUE mesg = rb_sprintf("can't modify frozen %"PRIsVALUE": ",