Update src/browser/webapi/element/Attribute.zig

Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
Francis Bouvier
2026-07-14 14:35:58 +02:00
committed by GitHub
parent 2bf5c4abb3
commit 5f553144fb

View File

@@ -633,7 +633,7 @@ pub const NamedNodeMap = struct {
}
fn getNames(self: *const NamedNodeMap, exec: *const js.Execution) !js.Array {
const names = try self.list().getNames(exec.call_arena);
const names = try self.list().getNames(exec.local_arena);
var arr = exec.js.local.?.newArray(@intCast(names.len));
for (names, 0..) |name, i| {
_ = try arr.set(@intCast(i), name, .{});