angular/angular.js — pull request #7067 by caitp (2014-04-10 00:47:05+00:00)
Title: fix($compile): reference correct directive name in ctreq error

Previously, ctreq would possibly reference the incorrect directive name, due
to relying on a directiveName living outside of the closure which throws the
exception, which can change before the call is ever made.

This change saves the current value of directiveName as a property of the link
function, which prevents this from occurring.

Closes #7062