@@ -52,7 +52,8 @@ public class JSOneshotClosure: JSObject, JSClosureProtocol {
52
52
@available ( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * )
53
53
public static func async (
54
54
priority: TaskPriority ? = nil ,
55
- file: String = #fileID, line: UInt32 = #line,
55
+ file: String = #fileID,
56
+ line: UInt32 = #line,
56
57
_ body: sending @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
57
58
) -> JSOneshotClosure {
58
59
JSOneshotClosure ( file: file, line: line, makeAsyncClosure ( priority: priority, body) )
@@ -68,10 +69,15 @@ public class JSOneshotClosure: JSObject, JSClosureProtocol {
68
69
public static func async (
69
70
executorPreference taskExecutor: ( any TaskExecutor ) ? = nil ,
70
71
priority: TaskPriority ? = nil ,
71
- file: String = #fileID, line: UInt32 = #line,
72
+ file: String = #fileID,
73
+ line: UInt32 = #line,
72
74
_ body: @Sendable @escaping ( sending [ JSValue] ) async throws ( JSException ) -> JSValue
73
75
) -> JSOneshotClosure {
74
- JSOneshotClosure ( file: file, line: line, makeAsyncClosure ( executorPreference: taskExecutor, priority: priority, body) )
76
+ JSOneshotClosure (
77
+ file: file,
78
+ line: line,
79
+ makeAsyncClosure ( executorPreference: taskExecutor, priority: priority, body)
80
+ )
75
81
}
76
82
#endif
77
83
@@ -168,7 +174,8 @@ public class JSClosure: JSFunction, JSClosureProtocol {
168
174
@available ( macOS 10 . 15 , iOS 13 . 0 , watchOS 6 . 0 , tvOS 13 . 0 , * )
169
175
public static func async (
170
176
priority: TaskPriority ? = nil ,
171
- file: String = #fileID, line: UInt32 = #line,
177
+ file: String = #fileID,
178
+ line: UInt32 = #line,
172
179
_ body: sending @escaping @isolated ( any) ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
173
180
) -> JSClosure {
174
181
JSClosure ( file: file, line: line, makeAsyncClosure ( priority: priority, body) )
@@ -184,7 +191,8 @@ public class JSClosure: JSFunction, JSClosureProtocol {
184
191
public static func async (
185
192
executorPreference taskExecutor: ( any TaskExecutor ) ? = nil ,
186
193
priority: TaskPriority ? = nil ,
187
- file: String = #fileID, line: UInt32 = #line,
194
+ file: String = #fileID,
195
+ line: UInt32 = #line,
188
196
_ body: sending @escaping ( sending [ JSValue ] ) async throws ( JSException) -> JSValue
189
197
) -> JSClosure {
190
198
JSClosure ( file: file, line: line, makeAsyncClosure ( executorPreference: taskExecutor, priority: priority, body) )
0 commit comments