Skip to content

Commit bd296cd

Browse files
committed
fix: cache write-only runtime property values
1 parent 096b2b8 commit bd296cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

NativeScript/ffi/shared/bridge/HostObjects.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,9 @@ throw JSError(
17001700
Value args[] = {Value(runtime, value)};
17011701
callObjCSelector(runtime, bridge_, object_, false,
17021702
*setterSelectorName, nullptr, args, 1);
1703+
if (!runtimeReadablePropertyGetter(object_, property)) {
1704+
bridge_->setObjectExpando(runtime, object_, property, value);
1705+
}
17031706
NATIVE_API_SET_RETURN(true);
17041707
}
17051708

0 commit comments

Comments
 (0)