mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
Remove all traces of Box representation from bindings. Work around file read runtime problem.
This commit is contained in:
parent
bbac8aa5c3
commit
f279abbf9f
8 changed files with 31 additions and 45 deletions
|
@ -655,7 +655,7 @@ impl ScriptTask {
|
|||
let this_value = if timer_data.args.len() > 0 {
|
||||
fail!("NYI")
|
||||
} else {
|
||||
js_info.get().get_ref().js_compartment.borrow().global_obj.borrow().ptr
|
||||
js_info.get().get_ref().js_compartment.borrow().global_obj
|
||||
};
|
||||
|
||||
// TODO: Support extra arguments. This requires passing a `*JSVal` array as `argv`.
|
||||
|
@ -880,7 +880,7 @@ impl ScriptTask {
|
|||
let (cx, global_obj) = {
|
||||
let js_info = page.js_info();
|
||||
(js_info.get().get_ref().js_context.clone(),
|
||||
js_info.get().get_ref().js_compartment.borrow().global_obj.clone())
|
||||
js_info.get().get_ref().js_compartment.borrow().global_obj)
|
||||
};
|
||||
cx.borrow().evaluate_script(global_obj,
|
||||
file.data.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue