mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-07-31 09:46:05 -04:00
Update src/browser/webapi/element/Attribute.zig
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
@@ -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, .{});
|
||||
|
||||
Reference in New Issue
Block a user