rm array proto funcs

This commit is contained in:
2026-01-21 00:52:18 -06:00
parent ef49606098
commit 26fce3a5a8
31 changed files with 259 additions and 372 deletions

View File

@@ -97,7 +97,7 @@ function gather_graph(locator, visited) {
arrfor(array(deps), function(alias) {
var dep_locator = deps[alias]
add_node(dep_locator)
edges.push({ from: locator, to: dep_locator, alias: alias })
push(edges, { from: locator, to: dep_locator, alias: alias })
gather_graph(dep_locator, visited)
})
}
@@ -114,7 +114,7 @@ if (show_world) {
var packages = shop.list_packages()
arrfor(packages, function(p) {
if (p != 'core') {
roots.push(p)
push(roots, p)
}
})
} else {
@@ -131,7 +131,7 @@ if (show_world) {
}
}
roots.push(target_locator)
push(roots, target_locator)
}
arrfor(roots, function(root) {
@@ -159,7 +159,7 @@ if (format == 'tree') {
var children = []
arrfor(edges, function(e) {
if (e.from == locator) {
children.push(e)
push(children, e)
}
})
@@ -175,7 +175,7 @@ if (format == 'tree') {
var children = []
arrfor(edges, function(e) {
if (e.from == roots[i]) {
children.push(e)
push(children, e)
}
})
@@ -225,7 +225,7 @@ if (format == 'tree') {
}
arrfor(array(nodes), function(id) {
output.nodes.push(nodes[id])
push(output.nodes, nodes[id])
})
output.edges = edges