We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
swiftwasm
Learn more about funding links in repositories.
Report abuse
public
JSValue.subscript(dynamicMember:)
1 parent 75634ba commit c5c9ff9Copy full SHA for c5c9ff9
Sources/JavaScriptKit/JSValue.swift
@@ -111,7 +111,7 @@ extension JSValue {
111
#if !hasFeature(Embedded)
112
/// An unsafe convenience method of `JSObject.subscript(_ name: String) -> ((ConvertibleToJSValue...) -> JSValue)?`
113
/// - Precondition: `self` must be a JavaScript Object and specified member should be a callable object.
114
- subscript(dynamicMember name: String) -> ((ConvertibleToJSValue...) -> JSValue) {
+ public subscript(dynamicMember name: String) -> ((ConvertibleToJSValue...) -> JSValue) {
115
object![dynamicMember: name]!
116
}
117
#endif
0 commit comments