mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +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
|
@ -561,8 +561,8 @@ impl NodeHelpers for JS<Node> {
|
|||
if object.is_null() {
|
||||
fail!("Attempted to create a `JS<Node>` from an invalid pointer!")
|
||||
}
|
||||
let boxed_node: *mut Box<Node> = utils::unwrap(object);
|
||||
JS::from_box(boxed_node)
|
||||
let boxed_node: *mut Node = utils::unwrap(object);
|
||||
JS::from_raw(boxed_node)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue