also looking at this
fix(compat): stop describing ArrayList's layout, and read it instead
#876
5 files
+88
-42
| @@ -4396,7 +4396,10 @@ pub const Object = struct { | ||
| 4396 | 4396 | return err; |
| 4397 | 4397 | }; |
| 4398 | 4398 | @memcpy(values[0..old_slots.len], old_slots); |
| 4399 | state.* = .{ .list = .{ .items = values[0..old_slots.len], .capacity = values.len } }; | |
| 4399 | // `initBuffer`, not a literal: 0.17.0-dev.1963 added a field to the | |
| 4400 | // list, and a literal that names the old fields no longer compiles. | |
| 4401 | state.* = .{ .list = .initBuffer(values) }; | |
| 4402 | state.list.items.len = old_slots.len; | |
| 4400 | 4403 | state.list.appendAssumeCapacity(value_); |
| 4401 | 4404 | storage.state.slots.store(state, .release); |
| 4402 | 4405 | } |