Support native promise callbacks.

This commit is contained in:
Josh Matthews 2016-08-12 11:44:56 -04:00
parent 7ba3172ce0
commit ab168204ed
5 changed files with 138 additions and 3 deletions

View file

@ -156,7 +156,7 @@ impl<T: JSTraceable> JSTraceable for Rc<T> {
}
}
impl<T: JSTraceable> JSTraceable for Box<T> {
impl<T: JSTraceable + ?Sized> JSTraceable for Box<T> {
fn trace(&self, trc: *mut JSTracer) {
(**self).trace(trc)
}