* Returns the CryptoKey's cached canonical usages array for internal * consumers, expanding it from the native usage mask on first access. * @param {Array} slots * @returns {string[]}
(slots)
| 1207 | * @returns {string[]} |
| 1208 | */ |
| 1209 | function getCryptoKeyUsagesFromSlots(slots) { |
| 1210 | let usages = slots[kSlotUsages]; |
| 1211 | if (usages === undefined) { |
| 1212 | usages = getUsagesFromMask(slots[kSlotUsagesMask]); |
| 1213 | slots[kSlotUsages] = usages; |
| 1214 | } |
| 1215 | return usages; |
| 1216 | } |
| 1217 | |
| 1218 | /** |
| 1219 | * Returns the CryptoKey's `[[usages]]` internal slot, bypassing the |
no test coverage detected
searching dependent graphs…