Skip to content

Commit 0896483

Browse files
Update Sources/JavaScriptKit/JSValue.swift
Co-authored-by: Jed Fox <git@jedfox.com>
1 parent aed4312 commit 0896483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/JavaScriptKit/JSValue.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ extension JSValue {
145145
.object(JSClosure(body))
146146
}
147147

148-
@available(*, deprecated, renamed: "object", message: "JSClosure is not a subclass of JSFunction now")
148+
@available(*, deprecated, renamed: "object", message: "JSClosure is no longer a subclass of JSFunction. Use .object(closure) instead.")
149149
public static func function(_ closure: JSClosure) -> JSValue {
150150
.object(closure)
151151
}

0 commit comments

Comments
 (0)