diff --git a/core/src/avm1/object.rs b/core/src/avm1/object.rs index 6e12bcec1..b9c27430a 100644 --- a/core/src/avm1/object.rs +++ b/core/src/avm1/object.rs @@ -63,16 +63,9 @@ impl<'gc> Property<'gc> { new_value: Value<'gc>, ) { match self { - Property::Virtual { - set, attributes, .. - } => { + Property::Virtual { set, .. } => { if let Some(function) = set { function(avm, context, this, &[new_value]); - } else if !attributes.contains(ReadOnly) { - *self = Property::Stored { - value: new_value, - attributes: *attributes, - }; } } Property::Stored {