mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Re-enable direct debugging with JSC on iOS 16.4+ (#37914)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37914 Restores https://github.com/facebook/react-native/pull/37874 (reverted earlier today), with fix for `JSCRuntime.cpp` build on Android. Changelog: None Reviewed By: cortinico Differential Revision: D46762984 fbshipit-source-id: 6d56f81b9d0c928887860993b2b729ed96c0734c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
24f7707418
commit
8b1bf058c4
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user