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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user