Commit a4927ee
committed
Fix read-only value error in hash assignment
The setFromList() method was directly using RuntimeScalar values from
the iterator, which could be read-only. This caused 'Modification of
a read-only value attempted' errors when localizing hash elements.
Fixed by creating new RuntimeScalar instances, matching the behavior
of createHashNoWarn() which properly handles aliasing and avoids
read-only issues.
Fixes failing tests:
- unit/local.t
- unit/lvalue_ternary.t
- unit/dereference_syntax.t1 parent 2743963 commit a4927ee
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
0 commit comments