Skip to content

Truly independent web browser

LibJS: Clear the slot of a deleted property

Tim Ledbetterf692983ffe6f
diff --git a/Libraries/LibJS/Rust/src/runtime/object.rs b/Libraries/LibJS/Rust/src/runtime/object.rs
index cbe48165b7b..23a5340be73 100644
--- a/Libraries/LibJS/Rust/src/runtime/object.rs
+++ b/Libraries/LibJS/Rust/src/runtime/object.rs
@@ -2966,6 +2966,7 @@ impl Object {
);
}
}
+ self.write_direct(self.shape().property_count(), Value::UNDEFINED);
}
pub fn set_prototype(&self, vm: &Vm, new_prototype: Option<Gc<Object>>) {