Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3a3868

Browse files
./Utilities/format.swift
1 parent511ebc5 commita3a3868

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

‎Sources/JavaScriptKit/FundamentalObjects/JSClosure.swift‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public class JSOneshotClosure: JSObject, JSClosureProtocol {
5252
@available(macOS10.15, iOS13.0, watchOS6.0, tvOS13.0,*)
5353
publicstaticfuncasync(
5454
priority:TaskPriority?=nil,
55-
file:String= #fileID, line:UInt32= #line,
55+
file:String= #fileID,
56+
line:UInt32= #line,
5657
_ body:sending@escaping(sending[JSValue])asyncthrows(JSException)->JSValue
5758
)->JSOneshotClosure{
5859
JSOneshotClosure(file: file, line: line,makeAsyncClosure(priority: priority, body))
@@ -68,10 +69,15 @@ public class JSOneshotClosure: JSObject, JSClosureProtocol {
6869
publicstaticfuncasync(
6970
executorPreference taskExecutor:(anyTaskExecutor)?=nil,
7071
priority:TaskPriority?=nil,
71-
file:String= #fileID, line:UInt32= #line,
72+
file:String= #fileID,
73+
line:UInt32= #line,
7274
_ body:@Sendable@escaping(sending[JSValue])asyncthrows(JSException)->JSValue
7375
)->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+
)
7581
}
7682
#endif
7783

@@ -168,7 +174,8 @@ public class JSClosure: JSFunction, JSClosureProtocol {
168174
@available(macOS10.15, iOS13.0, watchOS6.0, tvOS13.0,*)
169175
publicstaticfuncasync(
170176
priority:TaskPriority?=nil,
171-
file:String= #fileID, line:UInt32= #line,
177+
file:String= #fileID,
178+
line:UInt32= #line,
172179
_ body:sending@escaping@isolated(any)(sending[JSValue])asyncthrows(JSException)->JSValue
173180
)->JSClosure{
174181
JSClosure(file: file, line: line,makeAsyncClosure(priority: priority, body))
@@ -184,7 +191,8 @@ public class JSClosure: JSFunction, JSClosureProtocol {
184191
publicstaticfuncasync(
185192
executorPreference taskExecutor:(anyTaskExecutor)?=nil,
186193
priority:TaskPriority?=nil,
187-
file:String= #fileID, line:UInt32= #line,
194+
file:String= #fileID,
195+
line:UInt32= #line,
188196
_ body:sending@escaping(sending[JSValue])asyncthrows(JSException)->JSValue
189197
)->JSClosure{
190198
JSClosure(file: file, line: line,makeAsyncClosure(executorPreference: taskExecutor, priority: priority, body))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp