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

Function makeOptions

lib/internal/webidl.js:122–132  ·  view source on GitHub ↗

* Builds derived conversion options for nested converter calls and adjusted * error codes. These objects are allocated on dictionary/sequence conversion * hot paths, so keep their shape stable and avoid object spread and * null-prototype objects. * @param {ConversionOptions} options Parent conve

(options, context = options.context, code = options.code)

Source from the content-addressed store, hash-verified

120 * @returns {ConversionOptions}
121 */
122function makeOptions(options, context = options.context, code = options.code) {
123 return {
124 prefix: options.prefix,
125 context,
126 code,
127 enforceRange: options.enforceRange,
128 clamp: options.clamp,
129 allowShared: options.allowShared,
130 allowResizable: options.allowResizable,
131 };
132}
133
134/**
135 * Returns the ECMAScript specification type of a JavaScript value.

Callers 5

convertToIntFunction · 0.85
requiredArgumentsFunction · 0.85
createEnumConverterFunction · 0.85
createSequenceConverterFunction · 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…