Add unrooted_must_root lint for usages of JS<T> in let/for bindings

This commit is contained in:
Manish Goregaokar 2014-09-16 22:35:41 +05:30
parent 12dc54d238
commit bded5c3703
11 changed files with 55 additions and 15 deletions

View file

@ -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)
}
}