refactor(test_injector): Provide separate methods for creating test injector with and without runtime compiler.
BREAKING CHANGE: `createTestInjector()` does not more include the runtime compiler. Use `createTestInjectorWithRuntimeCompiler()` instead. Closes #5583
This commit is contained in:
@ -73,7 +73,7 @@ dynamic _runInjectableFunction(Function fn) {
|
||||
}
|
||||
|
||||
if (_currentInjector == null) {
|
||||
_currentInjector = createTestInjector(_currentTestProviders);
|
||||
_currentInjector = createTestInjectorWithRuntimeCompiler(_currentTestProviders);
|
||||
}
|
||||
var injectFn = new FunctionWithParamTokens(tokens, fn, false);
|
||||
return injectFn.execute(_currentInjector);
|
||||
|
Reference in New Issue
Block a user