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 fortmarek committed Sep 25, 2023
1 parent 37de064 commit 6e55926
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 6e55926

Please sign in to comment.