MCPcopy Index your code
hub / github.com/nodejs/node / prepareSubtleMethod

Function prepareSubtleMethod

lib/internal/crypto/webcrypto.js:123–130  ·  view source on GitHub ↗
(receiver, method, argLength, required)

Source from the content-addressed store, hash-verified

121];
122
123function prepareSubtleMethod(receiver, method, argLength, required) {
124 if (receiver !== subtle) throw new ERR_INVALID_THIS('SubtleCrypto');
125
126 webidl ??= require('internal/crypto/webidl');
127 const prefix = `Failed to execute '${method}' on 'SubtleCrypto'`;
128 webidl.requiredArguments(argLength, required, { prefix });
129 return prefix;
130}
131
132function convertSubtleArgument(prefix, converter, value, index) {
133 return webidl.converters[converter](value, {

Callers 15

digestImplFunction · 0.85
generateKeyImplFunction · 0.85
deriveBitsImplFunction · 0.85
deriveKeyImplFunction · 0.85
exportKeyImplFunction · 0.85
importKeyImplFunction · 0.85
wrapKeyImplFunction · 0.85
unwrapKeyImplFunction · 0.85
signImplFunction · 0.85
verifyImplFunction · 0.85
encryptImplFunction · 0.85
decryptImplFunction · 0.85

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…