[ReactNative] Guard agains errors during reconciliation

Summary:
@public

After refactoring the MessageQueue a guard was missing on around `batchedUpdates`
call.

Test Plan: Introduce an error on `getInitialState` of `AdsManagerTabsModalView.ios.js`
This commit is contained in:
Tadeu Zagallo 2015-06-25 09:38:54 -07:00
Родитель f383bf2b83
Коммит 5e71d352a6
1 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -76,6 +76,7 @@ class MessageQueue {
* Public APIs
*/
processBatch(batch) {
guard(() => {
ReactUpdates.batchedUpdates(() => {
batch.forEach((call) => {
let method = call.method === 'callFunctionReturnFlushedQueue' ?
@ -85,6 +86,7 @@ class MessageQueue {
BridgeProfiling.profile('ReactUpdates.batchedUpdates()');
});
BridgeProfiling.profileEnd();
});
return this.flushedQueue();
}