Skip to content

Commit

Permalink
Re-enable direct debugging with JSC on iOS 16.4+
Browse files Browse the repository at this point in the history
Summary:
Restores facebook#37874 (reverted earlier today), with fix for `JSCRuntime.cpp` build on Android.

Changelog: None

Differential Revision: D46762984

fbshipit-source-id: 306fd106009d39203252f245955916806d7afcde
  • Loading branch information
huntie authored and facebook-github-bot committed Jun 15, 2023
1 parent 7d4f233 commit e6aca51
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
#ifndef ANDROID
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 e6aca51

Please sign in to comment.