earlyjs: Reset error handler state after js pipeline fails (#47528)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47528

After the js pipeline fails to handle the error, reset the hasHandledFatalError var.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D65678387

fbshipit-source-id: ac7cd4724954ea78bf33542e208c5f5d3dba5383
This commit is contained in:
Ramanpreet Nara
2024-11-11 13:24:49 -08:00
committed by Facebook GitHub Bot
parent ca7b9e9509
commit a2959a915c
@@ -244,6 +244,9 @@ void JsErrorHandler::handleError(
"handleError(): Error raised while reporting using js pipeline. Using c++ pipeline instead.",
ex,
error);
// Re-try reporting using the c++ pipeline
_hasHandledFatalError = false;
}
}