summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index 2db1d3be56..df1c16132f 100644
--- a/iseq.c
+++ b/iseq.c
@@ -264,8 +264,10 @@ prepare_iseq_build(rb_iseq_t *iseq,
OBJ_WRITE(iseq->self, &iseq->klass, 0);
set_relation(iseq, parent);
- OBJ_FREEZE(name);
- OBJ_FREEZE(path);
+ name = rb_fstring(name);
+ path = rb_fstring(path);
+ if (RTEST(absolute_path))
+ absolute_path = rb_fstring(absolute_path);
iseq_location_setup(iseq, path, absolute_path, name, first_lineno);
if (iseq != iseq->local_iseq) {