Skip to content

Commit e6aca51

Browse files
huntiefacebook-github-bot
authored andcommitted
Re-enable direct debugging with JSC on iOS 16.4+
Summary: Restores #37874 (reverted earlier today), with fix for `JSCRuntime.cpp` build on Android. Changelog: None Differential Revision: D46762984 fbshipit-source-id: 306fd106009d39203252f245955916806d7afcde
1 parent 7d4f233 commit e6aca51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/react-native/ReactCommon/jsc/JSCRuntime.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,13 @@ JSCRuntime::JSCRuntime(JSGlobalContextRef ctx)
398398
stringCounter_(0)
399399
#endif
400400
{
401+
#ifndef NDEBUG
402+
#ifndef ANDROID
403+
if (__builtin_available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) {
404+
JSGlobalContextSetInspectable(ctx_, true);
405+
}
406+
#endif
407+
#endif
401408
}
402409

403410
JSCRuntime::~JSCRuntime() {

0 commit comments

Comments
 (0)