File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,13 @@ function $Resolve( $q, $injector) {
91
91
// To complete the overall resolution, we have to wait for the parent
92
92
// promise and for the promise for each invokable in our plan.
93
93
var resolution = $q . defer ( ) ,
94
- result = resolution . promise ,
94
+ result = silenceUncaughtInPromise ( resolution . promise ) ,
95
95
promises = result . $$promises = { } ,
96
96
values = extend ( { } , locals ) ,
97
97
wait = 1 + plan . length / 3 ,
98
98
merged = false ;
99
+
100
+ silenceUncaughtInPromise ( result ) ;
99
101
100
102
function done ( ) {
101
103
// Merge parent values we haven't got yet and publish our own $$values
@@ -175,7 +177,7 @@ function $Resolve( $q, $injector) {
175
177
}
176
178
}
177
179
// Publish promise synchronously; invocations further down in the plan may depend on it.
178
- promises [ key ] = invocation . promise ;
180
+ promises [ key ] = silenceUncaughtInPromise ( invocation . promise ) ;
179
181
}
180
182
181
183
return result ;
You can’t perform that action at this time.
0 commit comments