Implement JSTraceable for more types.

This commit is contained in:
Ms2ger 2017-02-14 14:42:35 +01:00
parent 8ce9ca6243
commit 3613e8f231
3 changed files with 9 additions and 1 deletions

View file

@ -642,3 +642,9 @@ impl<T: DomObject> Drop for Root<T> {
}
}
}
unsafe impl<T: DomObject> JSTraceable for Root<T> {
unsafe fn trace(&self, _: *mut JSTracer) {
// Already traced.
}
}