(path)
| 182 | return val; |
| 183 | } |
| 184 | realpath(path) { |
| 185 | const cached = this.#realpathCache.get(path); |
| 186 | if (cached) { |
| 187 | return cached; |
| 188 | } |
| 189 | const promise = PromisePrototypeThen(realpath(path), null, () => null); |
| 190 | this.#realpathCache.set(path, promise); |
| 191 | return promise; |
| 192 | } |
| 193 | realpathSync(path) { |
| 194 | const cached = this.#realpathCache.get(path); |
| 195 | if (cached && !(cached instanceof Promise)) { |