Add InRealm argument to Callback trait

This commit is contained in:
Tipowol 2020-04-05 19:54:30 +02:00
parent ae49473c25
commit 8a3bf880e9
4 changed files with 34 additions and 24 deletions

View file

@ -674,7 +674,7 @@ impl ModuleHandler {
}
impl Callback for ModuleHandler {
fn callback(&self, _cx: *mut JSContext, _v: HandleValue) {
fn callback(&self, _cx: *mut JSContext, _v: HandleValue, _realm: InRealm) {
let task = self.task.borrow_mut().take().unwrap();
task.run_box();
}