Make Promise::reject_native sound

This commit is contained in:
Anthony Ramine 2017-09-21 16:19:29 +02:00
parent 5addc2dfa3
commit 15acd1525e
4 changed files with 11 additions and 9 deletions

View file

@ -73,7 +73,7 @@ impl VRMethods for VR {
}
},
Err(e) => {
promise.reject_native(promise.global().get_cx(), &e);
promise.reject_native(&e);
return promise;
}
}