Skip to content

Commit 15ea449

Browse files
authored
[JSCRuntime] Only enable the JSC debugging in DEBUG by default (facebook#1976)
1 parent d1ed53d commit 15ea449

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-native/React/CxxBridge/JSCExecutorFactory.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ class JSCExecutorFactory : public JSExecutorFactory {
3030
JSIExecutor::RuntimeInstaller runtimeInstaller_;
3131

3232
// [macOS
33+
#if DEBUG
3334
bool enableDebugger_ = true;
35+
#else
36+
bool enableDebugger_ = false;
37+
#endif
3438
std::string debuggerName_ = "JSC React Native";
3539
// macOS]
3640
};

0 commit comments

Comments
 (0)