(dictionary)
| 95 | } |
| 96 | |
| 97 | function validateDictionary(dictionary) { |
| 98 | if (dictionary === undefined) return undefined; |
| 99 | if (isArrayBufferView(dictionary)) return dictionary; |
| 100 | if (isAnyArrayBuffer(dictionary)) return Buffer.from(dictionary); |
| 101 | throw new ERR_INVALID_ARG_TYPE( |
| 102 | 'options.dictionary', |
| 103 | ['Buffer', 'TypedArray', 'DataView', 'ArrayBuffer'], |
| 104 | dictionary); |
| 105 | } |
| 106 | |
| 107 | function validateParams(params, maxParam, errClass) { |
| 108 | if (params === undefined) return; |
no test coverage detected
searching dependent graphs…