mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Introduce Reflectable::global_scope
This commit is contained in:
parent
27f100b1d4
commit
ae6af5172b
30 changed files with 116 additions and 120 deletions
|
@ -93,8 +93,7 @@ impl<T: Reflectable + JSTraceable + Iterable> IterableIterator<T> {
|
|||
iterable: JS::from_ref(iterable),
|
||||
index: Cell::new(0),
|
||||
};
|
||||
let global = iterable.global();
|
||||
reflect_dom_object(iterator, global.r().as_global_scope(), wrap)
|
||||
reflect_dom_object(iterator, &*iterable.global_scope(), wrap)
|
||||
}
|
||||
|
||||
/// Return the next value from the iterable object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue