lockExclusive is a no-op under js/wasm. The runtime is single-threaded and the cache file lives in either an in-memory FS or a host-mediated FS, so there is no second writer to coordinate with.
(_ *os.File)
| 8 | // the cache file lives in either an in-memory FS or a host-mediated FS, so |
| 9 | // there is no second writer to coordinate with. |
| 10 | func lockExclusive(_ *os.File) error { |
| 11 | return nil |
| 12 | } |
| 13 | |
| 14 | // unlockFile mirrors lockExclusive: there is nothing to release. |
| 15 | func unlockFile(_ *os.File) error { |