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

Differential Revision: D46762984

fbshipit-source-id: 96133f45d4bbadea71896813a23ed3c9adb48bf2
  • Loading branch information
huntie authored and facebook-github-bot committed Jun 15, 2023
1 parent dc2037c commit f4451f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react-native/ReactCommon/jsc/JSCRuntime.cpp
Original file line number Diff line number Diff line change
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 f4451f3

Please sign in to comment.