We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc18b5 commit 3dd05efCopy full SHA for 3dd05ef
modules/angular2/src/test_lib/test_injector.ts
@@ -184,8 +184,11 @@ export class FunctionWithParamTokens {
184
this._fn = fn;
185
}
186
187
- execute(injector: Injector): void {
+ /**
188
+ * Returns the value of the executed function.
189
+ */
190
+ execute(injector: Injector): any {
191
var params = ListWrapper.map(this._tokens, (t) => injector.get(t));
- FunctionWrapper.apply(this._fn, params);
192
+ return FunctionWrapper.apply(this._fn, params);
193
194
0 commit comments