angular/angular.js — pull request #4840 by nbrustein (2013-11-08 18:49:34+00:00)
Title: feat($rootScope): add a useful error message when circular reference cau...

...ses error in $watch

When there is a circular reference in the expression passed to $watch, a maximum
call stack error is thrown that does not have a useful stack trace. A quick Google
search suggests that many angular users have struggled with this issue. Rewrite the
error message, giving a hint about where the error is coming from.