* 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)
| 120 | * @returns {ConversionOptions} |
| 121 | */ |
| 122 | function 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…