(options)
| 322 | } |
| 323 | |
| 324 | function validateMonitorReporting(options) { |
| 325 | const o = options.monitorReporting; |
| 326 | if (o === null || typeof o !== 'object') { |
| 327 | throw new TypeError(`Monitor reporting must be an object, obtained: ${o}`); |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Sets the default options that depend on the protocol version and other metadata. |