upTreeTraversal finished, fixed a bug in fixture parser where every node had parent set to 0

unfinished test that checks agains that error
This commit is contained in:
2026-07-20 18:15:50 +02:00
parent e89cec47d9
commit 46f9e05d63
4 changed files with 29 additions and 3 deletions
+1
View File
@@ -32,6 +32,7 @@ export function upTraverseTree(fs: FileSystem, inode: number): number[] {
let currentInode = inode;
while (currentInode !== 0) {
const node = fs.getNode(currentInode) as TreeNode;
if (!node) break;
result.push(node.parent);
currentInode = node.parent;