mirror of
https://github.com/servo/servo.git
synced 2025-06-12 10:24:43 +00:00
Add InRealm argument to Callback trait
This commit is contained in:
parent
ae49473c25
commit
8a3bf880e9
4 changed files with 34 additions and 24 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue