function wrapproperty(obj, prop, message) {
  if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
    throw new TypeError('argument obj must be object')
  }

  var descriptor = Object.getOwnPropertyDescriptor(obj, prop)

  if (!descriptor) {
    throw new TypeError('must call property on owner object')
  }

  if (!descriptor.configurable) {
    throw new TypeError('property must be configurable')
  }

  return
}
/**
 * Wrap property in a deprecation message.
 *
 * This is a no-op version of the wrapper, which does nothing but call
 * validation.
 */
Wrap property in a deprecation message.
This is a no-op version of the wrapper, which does nothing but call
validation.
Wrap property in a deprecation message . This is a no - op version of the wrapper which does nothing but call validation .
function wrapproperty(obj, prop, message) {
  if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
    throw new TypeError('argument obj must be object')
  }
  var descriptor = Object.getOwnPropertyDescriptor(obj, prop)
  if (!descriptor) {
    throw new TypeError('must call property on owner object')
  }
  if (!descriptor.configurable) {
    throw new TypeError('property must be configurable')
  }
  return
}
function wrapproperty ( obj , prop , message ) { if ( ! obj || ( typeof obj !== 'object' && typeof obj !== 'function' ) ) { throw new TypeError ( 'argument obj must be object' ) } var descriptor = Object . getOwnPropertyDescriptor ( obj , prop ) if ( ! descriptor ) { throw new TypeError ( 'must call property on owner object' ) } if ( ! descriptor . configurable ) { throw new TypeError ( 'property must be configurable' ) } return }
Wrap property in a deprecation message.
Wrap property in a deprecation message .