Actions
Bug #12930
closedinstance_eval, instance_exec raises TypeError on a frozen String
Bug #12930:
instance_eval, instance_exec raises TypeError on a frozen String
Description
Actions
Added by matsuda (Akira Matsuda) almost 10 years ago. Updated over 9 years ago.
Description
A string literal with .freeze reveals the object in the shared frozen string literal pool.
I think that shared objects should not be modified, like Integer and Float.
Any idea?
Applied in changeset r56777.
vm_eval.c: fstring instance_eval
ruby_2_3 r58157 merged revision(s) 56747,56754,56777.