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

Function getContext

lib/internal/crypto/sig.js:109–120  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

107}
108
109function getContext(options) {
110 if (options?.context === undefined) {
111 return undefined;
112 }
113
114 if (!isArrayBufferView(options.context)) {
115 throw new ERR_INVALID_ARG_TYPE(
116 'options.context', ['Buffer', 'TypedArray', 'DataView'], options.context);
117 }
118
119 return options.context;
120}
121
122function getIntOption(name, options) {
123 const value = options[name];

Callers 2

signOneShotFunction · 0.70
verifyOneShotFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected