function assertNotHasOwnProperty(name, context) {
  if (name === 'hasOwnProperty') {
    throw ngMinErr('badname', 'hasOwnProperty is not a valid {0} name', context);
  }
}
throw error if the name given is hasOwnProperty
@param  {String} name    the name to test
@param  {String} context the context in which the name is used, such as module or directive