Skip to content

Commit

Permalink
Re-enable direct debugging with JSC on iOS 16.4+ (facebook#37914)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#37914

Restores facebook#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 Saadnajmi committed Aug 23, 2023
1 parent 7957912 commit 5353ca0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ReactCommon/jsc/JSCRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,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 5353ca0

Please sign in to comment.