Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
{
// [macOS
#ifndef NDEBUG

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ifndef is evil because even setting to =0 means it defines it and so dumb people like me get confused why things are compiling and then duh moment.

if (__builtin_available(macOS 13.3, iOS 16.4, tvOS 16.4, *)) {
JSGlobalContextSetInspectable(ctx_, true);
}
// macOS]
#endif
}

JSCRuntime::~JSCRuntime() {
Expand Down