(options, defaults)
| 269 | } |
| 270 | |
| 271 | function generateOptions(options, defaults) { |
| 272 | if (typeof options === 'function') { |
| 273 | defaults.callback = options; |
| 274 | } else if (options) { |
| 275 | for (var name in options) { |
| 276 | /* istanbul ignore else */ |
| 277 | if (options.hasOwnProperty(name)) { |
| 278 | defaults[name] = options[name]; |
| 279 | } |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | return defaults; |
| 284 | } |
| 285 | |
| 286 | // |
| 287 | // Ranges and exceptions: |
no outgoing calls
no test coverage detected