File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Sources/JavaScriptKit/FundamentalObjects Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,18 @@ public class JSObject: Equatable {
8
8
}
9
9
10
10
@_disfavoredOverload
11
- public subscript( dynamicMember name: String ) -> ( ( JSValueConvertible . . . ) -> JSValue ) ? {
11
+ public subscript( _ name: String ) -> ( ( JSValueConvertible . . . ) -> JSValue ) ? {
12
12
guard let function = self [ name] . function else { return nil }
13
13
return { ( arguments: JSValueConvertible... ) in
14
14
function ( this: self , arguments: arguments)
15
15
}
16
16
}
17
17
18
+ @_disfavoredOverload
19
+ public subscript( dynamicMember name: String ) -> ( ( JSValueConvertible . . . ) -> JSValue ) ? {
20
+ self [ name]
21
+ }
22
+
18
23
public subscript( dynamicMember name: String ) -> JSValue {
19
24
get { self [ name] }
20
25
set { self [ name] = newValue }
You can’t perform that action at this time.
0 commit comments