Downgrade TurboModule crash to warning
Summary: This is to address a UBN blocking FBiOSv300 rollout. A TM is attempting to invoke a promise more than once and crashing. We can't find the TM, so downgrading this to a warning to unblock the release. Plan going forward: - Replace this with some better logging to try and identify the culprit module. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D25539676 fbshipit-source-id: 5b75b71110eaa393378049de6e0d9a77e6328831
This commit is contained in:
Родитель
18149e4fa8
Коммит
687ddf0f32
|
@ -244,7 +244,8 @@ jsi::Value ObjCTurboModule::createPromise(
|
|||
}
|
||||
|
||||
if (resolveWasCalled) {
|
||||
throw std::runtime_error("Tried to resolve a promise more than once.");
|
||||
RCTLogWarn(@"Tried to resolve a promise more than once.");
|
||||
return;
|
||||
}
|
||||
|
||||
auto strongResolveWrapper = weakResolveWrapper.lock();
|
||||
|
|
Загрузка…
Ссылка в новой задаче