mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
window: avoid NonNull<JSObject> in NamedGetter (#35508)
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
f5ed44c3aa
commit
56199fd153
3 changed files with 8 additions and 22 deletions
|
@ -132,7 +132,7 @@ unsafe extern "C" fn get_own_property_descriptor(
|
|||
|
||||
let window = Root::downcast::<Window>(GlobalScope::from_object(proxy.get()))
|
||||
.expect("global is not a window");
|
||||
if let Some(obj) = window.NamedGetter(cx, s.into()) {
|
||||
if let Some(obj) = window.NamedGetter(s.into()) {
|
||||
rooted!(in(*cx) let mut rval = UndefinedValue());
|
||||
obj.to_jsval(*cx, rval.handle_mut());
|
||||
set_property_descriptor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue