(path)
| 159 | return val; |
| 160 | } |
| 161 | followStat(path) { |
| 162 | const cached = this.#followStatsCache.get(path); |
| 163 | if (cached) { |
| 164 | return cached; |
| 165 | } |
| 166 | const promise = PromisePrototypeThen(stat(path), null, () => null); |
| 167 | this.#followStatsCache.set(path, promise); |
| 168 | return promise; |
| 169 | } |
| 170 | followStatSync(path) { |
| 171 | const cached = this.#followStatsCache.get(path); |
| 172 | if (cached && !(cached instanceof Promise)) { |
no test coverage detected