()
| 112 | |
| 113 | let _hashCache; |
| 114 | function getHashCache() { |
| 115 | if (_hashCache === undefined) { |
| 116 | _hashCache = getCachedAliases(); |
| 117 | if (isBuildingSnapshot()) { |
| 118 | // For dynamic linking, clear the map. |
| 119 | addSerializeCallback(() => { _hashCache = undefined; }); |
| 120 | } |
| 121 | } |
| 122 | return _hashCache; |
| 123 | } |
| 124 | |
| 125 | function getCachedHashId(algorithm) { |
| 126 | const result = getHashCache()[algorithm]; |
no test coverage detected
searching dependent graphs…