fix(ivy): incorrect injectable name logged in warning message on IE (#34305)

When we log DI errors we get the name of the provider via `SomeClass.name`. In IE functions that inherit from other functions don't have their own `name`, but they take the `name` from the lowest parent in the chain, before `Function`. I've added some changes to fall back to parsing out the function name from the function's string form.

PR Close #34305
This commit is contained in:
crisbeto
2019-12-11 22:20:28 +01:00
committed by Kara Erickson
parent c2a904da09
commit f79110c637
2 changed files with 22 additions and 2 deletions

View File

@ -137,6 +137,9 @@
{
"name": "getOwnDefinition"
},
{
"name": "getTypeName"
},
{
"name": "getUndecoratedInjectableFactory"
},