- Fixed a buged while condition inside path_resolver.ts

- Fixed `NodePointer` class to work with by reference comparison (maps use that) so the reverse index can look up entries properly`. `NodePointer` now caches every pointer created so logic can use reference comparison
This commit is contained in:
2026-11-11 05:21:03 +01:00
parent cb9cd7a67a
commit d5566aa494
2 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ export function resolvePointer(state: ShellState, pointer: NodePointer): string
let ptr = pointer;
// TODO: Change while statements condition to not be hardcoded
while (ptr.equals(NodePointer.of(0, 0))) {
while (!ptr.equals(NodePointer.of(0, 0))) {
if (state.filesystem.isMountTarget(ptr)) {
const mount = state.filesystem.getMountPoint(ptr);
if (!mount) {