From 8ce4bf1893d4e51e5ba94571cef4466bdbdb10b9 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 29 Apr 2024 09:21:23 -0700 Subject: [PATCH] fix: Fix missing space (#44311) Summary: Just a minor fix to fix a missing space in the debug message. Fixes a missing space in the message ``` Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'MmkvPlatformContext' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","Timing","AppState","SourceCode","BlobModule","WebSocketModule","SettingsManager","DevSettings","RedBox","Networking","Appearance","DevLoadingView","UIManager","DeviceInfo","ImageLoader","LinkingManager"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","BugReporting","HeadlessJsTaskSupport","SoundManager","IntentAndroid","MmkvPlatformContext","MmkvCxx"]} ``` ## Changelog: [INTERNAL] [FIXED] - Fixed missing space in TurboModule.getEnforcing error message Pull Request resolved: https://github.com/facebook/react-native/pull/44311 Reviewed By: christophpurrer Differential Revision: D56702036 Pulled By: rshest fbshipit-source-id: e339a6ee8c265b2c6d27184e8e9941f3f02e3c85 --- .../react-native/Libraries/TurboModule/TurboModuleRegistry.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/TurboModule/TurboModuleRegistry.js b/packages/react-native/Libraries/TurboModule/TurboModuleRegistry.js index c8d6ad63df8..8fdf999d49e 100644 --- a/packages/react-native/Libraries/TurboModule/TurboModuleRegistry.js +++ b/packages/react-native/Libraries/TurboModule/TurboModuleRegistry.js @@ -76,7 +76,8 @@ export function getEnforcing(name: string): T { 'Verify that a module by this name is registered in the native binary.'; if (shouldReportDebugInfo()) { - message += 'Bridgeless mode: ' + (isBridgeless() ? 'true' : 'false') + '. '; + message += + ' Bridgeless mode: ' + (isBridgeless() ? 'true' : 'false') + '. '; message += 'TurboModule interop: ' + (isTurboModuleInteropEnabled() ? 'true' : 'false') +