ReviewOS

also looking at this

zig-utils/zig-js

fix(compat): stop describing ArrayList's layout, and read it instead

#876
Merged glennmichael123 wants to merge fix/zig-1963-arraylist-compat into main
5 files +88 -42
src/value.zigmodified+4-1
Changes to src/value.zig
@@ -4396,7 +4396,10 @@ pub const Object = struct {
43964396 return err;
43974397 };
43984398 @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;
44004403 state.list.appendAssumeCapacity(value_);
44014404 storage.state.slots.store(state, .release);
44024405 }