File tree 1 file changed +2
-7
lines changed
Sources/JavaScriptKit/FundamentalObjects
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import _CJavaScriptKit
10
10
/// alert("Hello, world")
11
11
/// ```
12
12
///
13
- public class JSFunction : JSObject , _JSFunctionProtocol {
13
+ public class JSFunction : JSObject {
14
14
#if !hasFeature(Embedded)
15
15
/// Call this function with given `arguments` and binding given `this` as context.
16
16
/// - Parameters:
@@ -163,14 +163,9 @@ public class JSFunction: JSObject, _JSFunctionProtocol {
163
163
}
164
164
}
165
165
166
- /// Internal protocol to support generic arguments for `JSFunction`.
167
- ///
168
- /// In Swift Embedded, non-final classes cannot have generic methods.
169
- public protocol _JSFunctionProtocol : JSFunction { }
170
-
171
166
#if hasFeature(Embedded)
172
167
// NOTE: once embedded supports variadic generics, we can remove these overloads
173
- public extension _JSFunctionProtocol {
168
+ public extension JSFunction {
174
169
175
170
@discardableResult
176
171
func callAsFunction( this: JSObject ) -> JSValue {
You can’t perform that action at this time.
0 commit comments