mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use unsafe Heap::handle wherever needed
This commit is contained in:
parent
ed0091f86f
commit
f7c039516c
3 changed files with 12 additions and 3 deletions
|
@ -46,7 +46,8 @@ impl Reflector {
|
|||
/// Get the reflector.
|
||||
#[inline]
|
||||
pub fn get_jsobject(&self) -> HandleObject {
|
||||
self.object.handle()
|
||||
// We're rooted, so it's safe to hand out a handle to object in Heap
|
||||
unsafe { self.object.handle() }
|
||||
}
|
||||
|
||||
/// Initialize the reflector. (May be called only once.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue