mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
"JS<T>::from_raw" should accept "*T" instead of "*mut T"
This commit is contained in:
parent
e511c04935
commit
106627e6eb
5 changed files with 13 additions and 13 deletions
|
@ -646,7 +646,7 @@ pub fn from_untrusted_node_address(runtime: *mut JSRuntime, candidate: Untrusted
|
|||
if object.is_null() {
|
||||
fail!("Attempted to create a `JS<Node>` from an invalid pointer!")
|
||||
}
|
||||
let boxed_node: *mut Node = utils::unwrap(object);
|
||||
let boxed_node: *Node = utils::unwrap(object);
|
||||
Temporary::new(JS::from_raw(boxed_node))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue