Skip to content

Commit c50dcd1

Browse files
committed
disable convenience func in embedded
1 parent d8a01fd commit c50dcd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/JavaScriptKit/JSValue.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ public extension JSValue {
116116
nonmutating set { self.object![name] = newValue }
117117
}
118118

119+
#if !hasFeature(Embedded)
119120
/// An unsafe convenience method of `JSObject.subscript(_ index: String) -> JSValue`
120121
/// - Precondition: `self` must be a JavaScript Object.
121122
@_disfavoredOverload
122123
subscript(dynamicMember name: String) -> ConvertibleToJSValue {
123124
get { self.object![name] }
124125
nonmutating set { self.object![name] = newValue.jsValue }
125126
}
127+
#endif
126128

127129
/// An unsafe convenience method of `JSObject.subscript(_ index: Int) -> JSValue`
128130
/// - Precondition: `self` must be a JavaScript Object.

0 commit comments

Comments
 (0)