Stop implementing Reflectable for JS<T> (fixes #2285).

It's not generally safe to expose the contents of a JS<T>.
This commit is contained in:
Ms2ger 2015-09-13 16:47:06 +02:00
parent ca5e7097a0
commit 3781567c19
2 changed files with 6 additions and 13 deletions

View file

@ -88,12 +88,6 @@ pub trait JSTraceable {
fn trace(&self, trc: *mut JSTracer);
}
impl<T: Reflectable> JSTraceable for JS<T> {
fn trace(&self, trc: *mut JSTracer) {
trace_reflector(trc, "", self.reflector());
}
}
no_jsmanaged_fields!(EncodingRef);
no_jsmanaged_fields!(Reflector);