script: Move operations in window_named_properties::get_own_property_descriptor & webdriver_handlers::clone_an_object into unsafe blocks (#38951)

Testing: Covered by existing tests
Part of https://github.com/servo/servo/issues/35955

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-08-26 23:48:25 +02:00 committed by GitHub
parent 87fe202ded
commit de6feb469a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 87 additions and 57 deletions

View file

@ -312,7 +312,11 @@ pub unsafe fn set_dictionary_property(
Ok(())
}
/// Returns whether `proxy` has a property `id` on its prototype.
/// Computes whether `proxy` has a property `id` on its prototype and stores
/// the result in `found`.
///
/// Returns a boolean indicating whether the check succeeded.
/// If `false` is returned then the value of `found` is unspecified.
///
/// # Safety
/// `cx` must point to a valid, non-null JSContext.