(options)
| 107 | } |
| 108 | |
| 109 | function 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 | |
| 122 | function getIntOption(name, options) { |
| 123 | const value = options[name]; |
no outgoing calls
no test coverage detected