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

Function enforceRangeOptions

lib/internal/crypto/webidl.js:123–130  ·  view source on GitHub ↗

* Builds conversion options for Web Crypto integer members that use Web IDL * [EnforceRange]. Keep this helper instead of spreading opts in each member * converter so the hot dictionary paths allocate stable-shape objects. * @param {object} opts Parent conversion options. * @returns {object}

(opts)

Source from the content-addressed store, hash-verified

121 * @returns {object}
122 */
123function enforceRangeOptions(opts) {
124 return {
125 prefix: opts.prefix,
126 context: opts.context,
127 code: opts.code,
128 enforceRange: true,
129 };
130}
131
132const dictAlgorithm = [
133 {

Callers 1

webidl.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…