Remove all traces of Box representation from bindings. Work around file read runtime problem.

This commit is contained in:
Josh Matthews 2014-03-14 12:55:57 -04:00 committed by Lars Bergstrom
parent bbac8aa5c3
commit f279abbf9f
8 changed files with 31 additions and 45 deletions

View file

@ -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)
}
}