Skip to content

Commit 8b1bf05

Browse files
huntiefacebook-github-bot
authored andcommitted
Re-enable direct debugging with JSC on iOS 16.4+ (#37914)
Summary: Pull Request resolved: #37914 Restores #37874 (reverted earlier today), with fix for `JSCRuntime.cpp` build on Android. Changelog: None Reviewed By: cortinico Differential Revision: D46762984 fbshipit-source-id: 6d56f81b9d0c928887860993b2b729ed96c0734c
1 parent 24f7707 commit 8b1bf05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
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+
#ifdef TARGET_OS_MAC
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)