nl_tokens: Validates the policies from the client options .
pl_tokens: function validatePoliciesOptions ( policiesOptions ) { if ( ! policiesOptions ) { throw new TypeError ( 'policies not defined in options' ) ; } if ( ! ( policiesOptions . loadBalancing instanceof policies . loadBalancing . LoadBalancingPolicy ) ) { throw new TypeError ( 'Load balancing policy must be an instance of LoadBalancingPolicy' ) ; } if ( ! ( policiesOptions . reconnection instanceof policies . reconnection . ReconnectionPolicy ) ) { throw new TypeError ( 'Reconnection policy must be an instance of ReconnectionPolicy' ) ; } if ( ! ( policiesOptions . retry instanceof policies . retry . RetryPolicy ) ) { throw <mask> TypeError ( 'Retry policy must be an instance of RetryPolicy' ) ; } if ( ! ( policiesOptions . addressResolution instanceof policies . addressResolution . AddressTranslator ) ) { throw new TypeError ( 'Address resolution policy must be an instance of AddressTranslator' ) ; } if ( policiesOptions . timestampGeneration !== null && ! ( policiesOptions . timestampGeneration instanceof policies . timestampGeneration . TimestampGenerator ) ) { throw new TypeError ( 'Timestamp generation policy must be an instance of TimestampGenerator' ) ; } }