Support for for in box layout in the interpreter

This commit is contained in:
Olivier Goffart 2020-10-31 11:24:31 +01:00
parent ab14978fa8
commit e4e7ae46f4
4 changed files with 106 additions and 37 deletions

View file

@ -330,7 +330,7 @@ declare_types! {
let component = cx.borrow(&mut this, |x| x.0.clone());
let component = component.ok_or(()).or_else(|()| cx.throw_error("Invalid type"))?;
run_scoped(&mut cx,this.downcast().unwrap(), || {
component.window().run(component.borrow(), component.root_item());
component.window().run(component.borrow(), component.borrow_instance().root_item());
Ok(())
})?;
Ok(JsUndefined::new().as_value(&mut cx))