mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
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:
parent
87fe202ded
commit
de6feb469a
3 changed files with 87 additions and 57 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue