@@ -54,7 +54,7 @@ public class JSOneshotClosure: JSObject, JSClosureProtocol {
54
54
priority: TaskPriority ? = nil ,
55
55
file: String = #fileID,
56
56
line: UInt32 = #line,
57
- _ body: sending @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
57
+ _ body: @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
58
58
) -> JSOneshotClosure {
59
59
JSOneshotClosure ( file: file, line: line, makeAsyncClosure ( priority: priority, body) )
60
60
}
@@ -71,7 +71,7 @@ public class JSOneshotClosure: JSObject, JSClosureProtocol {
71
71
priority: TaskPriority ? = nil ,
72
72
file: String = #fileID,
73
73
line: UInt32 = #line,
74
- _ body: @Sendable @ escaping ( sending [ JSValue] ) async throws ( JSException ) -> JSValue
74
+ _ body: @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
75
75
) -> JSOneshotClosure {
76
76
JSOneshotClosure (
77
77
file: file,
@@ -176,7 +176,7 @@ public class JSClosure: JSFunction, JSClosureProtocol {
176
176
priority: TaskPriority ? = nil ,
177
177
file: String = #fileID,
178
178
line: UInt32 = #line,
179
- _ body: sending @escaping @isolated ( any) ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
179
+ _ body: @escaping @isolated ( any) ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
180
180
) -> JSClosure {
181
181
JSClosure ( file: file, line: line, makeAsyncClosure ( priority: priority, body) )
182
182
}
@@ -193,7 +193,7 @@ public class JSClosure: JSFunction, JSClosureProtocol {
193
193
priority: TaskPriority ? = nil ,
194
194
file: String = #fileID,
195
195
line: UInt32 = #line,
196
- _ body: sending @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
196
+ _ body: @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
197
197
) -> JSClosure {
198
198
JSClosure ( file: file, line: line, makeAsyncClosure ( executorPreference: taskExecutor, priority: priority, body) )
199
199
}
@@ -212,7 +212,7 @@ public class JSClosure: JSFunction, JSClosureProtocol {
212
212
@available ( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * )
213
213
private func makeAsyncClosure(
214
214
priority: TaskPriority ? ,
215
- _ body: sending @escaping @isolated ( any) ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
215
+ _ body: @escaping @isolated ( any) ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
216
216
) -> ( ( sending [ JSValue ] ) -> JSValue ) {
217
217
{ arguments in
218
218
JSPromise { resolver in
@@ -241,7 +241,7 @@ private func makeAsyncClosure(
241
241
private func makeAsyncClosure(
242
242
executorPreference taskExecutor: ( any TaskExecutor ) ? ,
243
243
priority: TaskPriority ? ,
244
- _ body: sending @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
244
+ _ body: @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
245
245
) -> ( ( sending [ JSValue ] ) -> JSValue ) {
246
246
{ arguments in
247
247
JSPromise { resolver in
0 commit comments