Skip to content

Commit c5c9ff9

Browse files
committedMar 23, 2025·
Restore public on JSValue.subscript(dynamicMember:) lost during formatting
1 parent 75634ba commit c5c9ff9

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
@@ -111,7 +111,7 @@ extension JSValue {
111111
#if !hasFeature(Embedded)
112112
/// An unsafe convenience method of `JSObject.subscript(_ name: String) -> ((ConvertibleToJSValue...) -> JSValue)?`
113113
/// - Precondition: `self` must be a JavaScript Object and specified member should be a callable object.
114-
subscript(dynamicMember name: String) -> ((ConvertibleToJSValue...) -> JSValue) {
114+
public subscript(dynamicMember name: String) -> ((ConvertibleToJSValue...) -> JSValue) {
115115
object![dynamicMember: name]!
116116
}
117117
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.