(filename, options, listener)
| 464 | // ==================== Watch ops ==================== |
| 465 | |
| 466 | watch(filename, options, listener) { |
| 467 | if (typeof options === 'function') { |
| 468 | listener = options; |
| 469 | options = kEmptyObject; |
| 470 | } else if (options != null) { |
| 471 | validateObject(options, 'options'); |
| 472 | } else { |
| 473 | options = kEmptyObject; |
| 474 | } |
| 475 | const pathStr = toPathStr(filename); |
| 476 | if (pathStr !== null) { |
| 477 | const r = findVFSForPath(pathStr); |
| 478 | if (r !== null) return r.vfs.watch(pathStr, options, listener); |
| 479 | } |
| 480 | return undefined; |
| 481 | }, |
| 482 | |
| 483 | // ==================== Async path-based ops ==================== |
| 484 |
no test coverage detected
searching dependent graphs…