fix: preserve plain reference rebinding during read-only calls

This commit is contained in:
2026-10-21 14:30:06 +08:00
parent ff49f266a2
commit 4a2f81cb48
9 changed files with 51 additions and 2 deletions
+15
View File
@@ -28,6 +28,9 @@ impl EndorStringObject {
}
impl ObjectPayload for EndorStringObject {
fn reference_assignment_only(&self) -> bool {
true
}
fn as_any(&self) -> &dyn Any {
self
}
@@ -87,6 +90,9 @@ impl EndorDictObject {
}
impl ObjectPayload for EndorDictObject {
fn reference_assignment_only(&self) -> bool {
true
}
fn as_any(&self) -> &dyn Any {
self
}
@@ -126,6 +132,9 @@ impl EndorCellObject {
}
impl ObjectPayload for EndorCellObject {
fn reference_assignment_only(&self) -> bool {
true
}
fn as_any(&self) -> &dyn Any {
self
}
@@ -199,6 +208,9 @@ impl EndorFunctionObject {
}
impl ObjectPayload for EndorFunctionObject {
fn reference_assignment_only(&self) -> bool {
true
}
fn as_any(&self) -> &dyn Any {
self
}
@@ -302,6 +314,9 @@ impl EndorBaseExceptionObject {
}
impl ObjectPayload for EndorBaseExceptionObject {
fn reference_assignment_only(&self) -> bool {
true
}
fn as_any(&self) -> &dyn Any {
self
}