Skip to content

Commit

Permalink
Re-enable direct debugging with JSC on iOS 16.4+ (#37914)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
huntie authored and facebook-github-bot committed Jun 15, 2023
1 parent 24f7707 commit 8b1bf05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react-native/ReactCommon/jsc/JSCRuntime.cpp
Expand Up @@ -398,6 +398,13 @@ JSCRuntime::JSCRuntime(JSGlobalContextRef ctx)
stringCounter_(0)
#endif
{
#ifndef NDEBUG
#ifdef TARGET_OS_MAC
if (__builtin_available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) {
JSGlobalContextSetInspectable(ctx_, true);
}
#endif
#endif
}

JSCRuntime::~JSCRuntime() {
Expand Down

0 comments on commit 8b1bf05

Please sign in to comment.