mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add unrooted_must_root lint for usages of JS<T> in let/for bindings
This commit is contained in:
parent
12dc54d238
commit
bded5c3703
11 changed files with 55 additions and 15 deletions
|
@ -29,8 +29,8 @@ impl Performance {
|
|||
}
|
||||
|
||||
pub fn new(window: &JSRef<Window>) -> Temporary<Performance> {
|
||||
let performance = Performance::new_inherited(window);
|
||||
reflect_dom_object(box performance, &Window(*window),
|
||||
reflect_dom_object(box Performance::new_inherited(window),
|
||||
&Window(*window),
|
||||
PerformanceBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue