fix: allow plain local reference rebinding in source paint
Verify Tessera GUI / verify (push) Failing after 7m30s

This commit is contained in:
2026-10-21 14:32:21 +08:00
parent 6a88447524
commit d19fab55b9
7 changed files with 45 additions and 2 deletions
+6
View File
@@ -41,6 +41,9 @@ pub struct Block {
}
impl ObjectPayload for Block {
fn reference_assignment_only(&self) -> bool {
true
}
fn attribute_target(&self, store: &ObjectStore) -> Result<Option<ObjectRef>, VmError> {
let Value::Object(value) = store.cell_get(self.state)? else {
return Err(VmError::InvalidArgument("Block state is not an object"));
@@ -148,6 +151,9 @@ impl Data {
}
impl ObjectPayload for Data {
fn reference_assignment_only(&self) -> bool {
true
}
fn as_any(&self) -> &dyn std::any::Any {
self
}