File tree 1 file changed +3
-8
lines changed
Sources/JavaScriptKit/FundamentalObjects
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import _CJavaScriptKit
15
15
/// The lifetime of this object is managed by the JavaScript and Swift runtime bridge library with
16
16
/// reference counting system.
17
17
@dynamicMemberLookup
18
- public class JSObject : _JSObjectProtocol , Equatable {
18
+ public class JSObject : Equatable {
19
19
@_spi ( JSObject_id)
20
20
public var id : JavaScriptObjectRef
21
21
@_spi ( JSObject_id)
@@ -231,15 +231,10 @@ public class JSThrowingObject {
231
231
}
232
232
#endif
233
233
234
- /// Internal protocol to support generic arguments for `JSObject`.
235
- ///
236
- /// In Swift Embedded, non-final classes cannot have generic methods.
237
- public protocol _JSObjectProtocol : JSObject {
238
- }
239
234
240
235
#if hasFeature(Embedded)
241
236
// NOTE: once embedded supports variadic generics, we can remove these overloads
242
- public extension _JSObjectProtocol {
237
+ public extension JSObject {
243
238
@_disfavoredOverload
244
239
subscript( dynamicMember name: String ) -> ( ( ) -> JSValue ) ? {
245
240
self [ name] . function. map { function in
@@ -261,4 +256,4 @@ public extension _JSObjectProtocol {
261
256
}
262
257
}
263
258
}
264
- #endif
259
+ #endif
You can’t perform that action at this time.
0 commit comments