(algorithm, data)
| 141 | } |
| 142 | |
| 143 | function digestImpl(algorithm, data) { |
| 144 | const prefix = prepareSubtleMethod(this, 'digest', arguments.length, 2); |
| 145 | let i = 0; |
| 146 | algorithm = convertSubtleArgument( |
| 147 | prefix, 'AlgorithmIdentifier', algorithm, i++); |
| 148 | data = convertSubtleArgument(prefix, 'BufferSource', data, i++); |
| 149 | |
| 150 | const normalizedAlgorithm = normalizeAlgorithm(algorithm, 'digest'); |
| 151 | |
| 152 | return FunctionPrototypeCall(asyncDigest, this, normalizedAlgorithm, data); |
| 153 | } |
| 154 | |
| 155 | function randomUUID() { |
| 156 | if (this !== crypto) throw new ERR_INVALID_THIS('Crypto'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…