Skip to content

Commit 9b95b98

Browse files
committed
Mark JS[Oneshot]Closure.async as public
1 parent ce61808 commit 9b95b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/JavaScriptKit/FundamentalObjects/JSClosure.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class JSOneshotClosure: JSObject, JSClosureProtocol {
3232

3333
#if compiler(>=5.5)
3434
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
35-
static func async(_ body: @escaping ([JSValue]) async throws -> JSValue) -> JSOneshotClosure {
35+
public static func async(_ body: @escaping ([JSValue]) async throws -> JSValue) -> JSOneshotClosure {
3636
JSOneshotClosure(makeAsyncClosure(body))
3737
}
3838
#endif
@@ -93,7 +93,7 @@ public class JSClosure: JSObject, JSClosureProtocol {
9393

9494
#if compiler(>=5.5)
9595
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
96-
static func async(_ body: @escaping ([JSValue]) async throws -> JSValue) -> JSClosure {
96+
public static func async(_ body: @escaping ([JSValue]) async throws -> JSValue) -> JSClosure {
9797
JSClosure(makeAsyncClosure(body))
9898
}
9999
#endif

0 commit comments

Comments
 (0)