angular/angular.js — pull request #4468 by vojtajina (2013-10-16 19:17:13+00:00)
Title: fix($injector): allow a constructor function to return a function

This change makes `$injector.instantiate` (and thus `$provide.service`) to behave the same as native
`new` operator.