mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
auto merge of #1080 : Ms2ger/servo/get_jsobject-cast, r=jdm
This commit is contained in:
commit
79f4d9a47f
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ pub struct Reflector {
|
||||||
|
|
||||||
impl Reflector {
|
impl Reflector {
|
||||||
pub fn get_jsobject(&self) -> *JSObject {
|
pub fn get_jsobject(&self) -> *JSObject {
|
||||||
unsafe { cast::transmute(self.object) }
|
self.object
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_jsobject(&mut self, object: *JSObject) {
|
pub fn set_jsobject(&mut self, object: *JSObject) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue