Skip to content

JavaScriptCore tvOS xcode14.3 beta1

Alex Soto edited this page Mar 15, 2023 · 2 revisions

#JavaScriptCore.framework https://github.com/xamarin/xamarin-macios/pull/17810

diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h	2022-09-30 03:46:32
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h	2023-02-10 10:04:08
@@ -171,9 +171,16 @@
 
 /*!
 @property
-@discussion Name of the JSContext. Exposed when remote debugging the context.
+@discussion Name of the JSContext. Exposed when inspecting the context.
 */
 @property (copy) NSString *name ;
+
+/*!
+@property
+@discussion Controls whether this @link JSContext @/link is inspectable in Web Inspector. The default value is NO.
+*/
+@property (nonatomic, setter=setInspectable:) BOOL inspectable  NS_SWIFT_NAME(isInspectable);
+
 @end
 
 /*!
diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h	2022-09-30 03:46:32
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h	2023-02-10 09:00:02
@@ -143,18 +143,33 @@
 @abstract Gets a copy of the name of a context.
 @param ctx The JSGlobalContext whose name you want to get.
 @result The name for ctx.
-@discussion A JSGlobalContext's name is exposed for remote debugging to make it
-easier to identify the context you would like to attach to.
+@discussion A JSGlobalContext's name is exposed when inspecting the context to make it easier to identify the context you would like to inspect.
 */
 JS_EXPORT JSStringRef JSGlobalContextCopyName(JSGlobalContextRef ctx) ;
 
 /*!
 @function
-@abstract Sets the remote debugging name for a context.
+@abstract Sets the name exposed when inspecting a context.
 @param ctx The JSGlobalContext that you want to name.
-@param name The remote debugging name to set on ctx.
+@param name The name to set on the context.
 */
 JS_EXPORT void JSGlobalContextSetName(JSGlobalContextRef ctx, JSStringRef name) ;
+
+/*!
+@function
+@abstract Gets whether the context is inspectable in Web Inspector.
+@param ctx The JSGlobalContext that you want to change the inspectability of.
+@result Whether the context is inspectable in Web Inspector.
+*/
+JS_EXPORT bool JSGlobalContextIsInspectable(JSGlobalContextRef ctx) ;
+
+/*!
+@function
+@abstract Sets whether the context is inspectable in Web Inspector. Default value is NO.
+@param ctx The JSGlobalContext that you want to change the inspectability of.
+@param inspectable YES to allow Web Inspector to connect to the context, otherwise NO.
+*/
+JS_EXPORT void JSGlobalContextSetInspectable(JSGlobalContextRef ctx, bool inspectable) ;
 
 #ifdef __cplusplus
 }
diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h	2022-10-06 13:22:05
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h	2023-02-11 22:23:15
@@ -31,13 +31,21 @@
 #include <AvailabilityMacros.h>
 #include <CoreFoundation/CoreFoundation.h>
 
-#if defined(BUILDING_GTK__)
+#if defined(BUILDING_GTK__) || defined(BUILDING_JSCONLY__)
 #undef JSC_API_AVAILABLE
 #define JSC_API_AVAILABLE(...)
+
+#undef JSC_API_DEPRECATED
+#define JSC_API_DEPRECATED(...)
+
+#undef JSC_API_DEPRECATED_WITH_REPLACEMENT
+#define JSC_API_DEPRECATED_WITH_REPLACEMENT(...)
 #endif
 
 #else
 #define JSC_API_AVAILABLE(...)
+#define JSC_API_DEPRECATED(...)
+#define JSC_API_DEPRECATED_WITH_REPLACEMENT(...)
 #endif
 
 #endif /* __WebKitAvailability__ */
Clone this wiki locally