fix(ivy): provided Injector should be instantiated by its factory (#27456)

(FW-777)

When an Injector is provided, R3Injector instantiates it by calling its
constructor instead of its factory, not resolving dependencies.
With this fix, the ngInjectorDef is checked and the factory is correctly
used if it is found.

PR Close #27456
This commit is contained in:
Marc Laval
2018-12-04 14:34:43 +01:00
committed by Igor Minar
parent 486f69fcac
commit 8973f12ee4
6 changed files with 68 additions and 52 deletions

View File

@ -1008,7 +1008,7 @@
"name": "injectRootLimpMode"
},
{
"name": "injectableDefFactory"
"name": "injectableDefOrInjectorDefFactory"
},
{
"name": "insertBloom"

View File

@ -141,7 +141,7 @@
"name": "injectRootLimpMode"
},
{
"name": "injectableDefFactory"
"name": "injectableDefOrInjectorDefFactory"
},
{
"name": "isExistingProvider"

View File

@ -2082,7 +2082,7 @@
"name": "injectViewContainerRef"
},
{
"name": "injectableDefFactory"
"name": "injectableDefOrInjectorDefFactory"
},
{
"name": "insertBloom"