We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a01fd commit c50dcd1Copy full SHA for c50dcd1
Sources/JavaScriptKit/JSValue.swift
@@ -116,13 +116,15 @@ public extension JSValue {
116
nonmutating set { self.object![name] = newValue }
117
}
118
119
+#if !hasFeature(Embedded)
120
/// An unsafe convenience method of `JSObject.subscript(_ index: String) -> JSValue`
121
/// - Precondition: `self` must be a JavaScript Object.
122
@_disfavoredOverload
123
subscript(dynamicMember name: String) -> ConvertibleToJSValue {
124
get { self.object![name] }
125
nonmutating set { self.object![name] = newValue.jsValue }
126
127
+#endif
128
129
/// An unsafe convenience method of `JSObject.subscript(_ index: Int) -> JSValue`
130
0 commit comments