mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Avoid build failure on Catalyst (x86_64) (#50514)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50514 When building React Native for mac catalyst on intel architecture, we are observing a build failure in RCTInstance. See issue: https://github.com/facebook/react-native/issues/50388 Apparently, the compiler don't understand that `errorData[@"isFatal"]` is a BOOL, so we are helping it by extracting the `boolValue`. ## Changelog: [iOS][Fixed] - Avoid build failure on Catalyst (x86_64) Reviewed By: cortinico Differential Revision: D72558024 fbshipit-source-id: 152d89b02ae250a8ae54fe2df658c018d5f63f45
This commit is contained in:
1 parent
26a6ae0e89
commit
0f534293af
1 file changed
+1
-1
+1
-1
@@ -609,7 +609,7 @@ void RCTInstanceSetRuntimeDiagnosticFlags(NSString *flags)
|
||||
name:errorData[@"name"]
|
||||
componentStack:errorData[@"componentStack"]
|
||||
exceptionId:error.id
|
||||
isFatal:errorData[@"isFatal"]
|
||||
isFatal:[errorData[@"isFatal"] boolValue]
|
||||
extraData:errorData[@"extraData"]]) {
|
||||
JS::NativeExceptionsManager::ExceptionData jsErrorData{errorData};
|
||||
id<NativeExceptionsManagerSpec> exceptionsManager = [_turboModuleManager moduleForName:"ExceptionsManager"];
|
||||
|
||||
Reference in new issue
Block a user