• throw error if the name given is hasOwnProperty

    Parameters

    • name: string

      the name to test

    • context: string

      the context in which the name is used, such as module or directive

    Returns void