Validate method substitution before definition updates and execution
This commit is contained in:
@@ -15,7 +15,7 @@ pub struct ObjectStore {
|
||||
}
|
||||
|
||||
impl ObjectStore {
|
||||
/// Opt-in declared-field checks, shared by VM and NativeContext writes.
|
||||
/// Opt-in declared-field and method substitution checks, shared with the VM.
|
||||
pub fn set_field_type_checks(&mut self, enabled: bool) -> Result<(), VmError> {
|
||||
if self.is_read_only() {
|
||||
return Err(VmError::UnsupportedOperation(
|
||||
|
||||
Reference in New Issue
Block a user