mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Fix infinite-looping reflector() implementation for WindowProxy.
This commit is contained in:
parent
b0ac5911ec
commit
e6be738d97
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,8 @@ use script_task::page_from_context;
|
||||||
|
|
||||||
use js::jsapi::{JSContext, JSObject};
|
use js::jsapi::{JSContext, JSObject};
|
||||||
|
|
||||||
|
use std::cast;
|
||||||
|
|
||||||
pub struct WindowProxy {
|
pub struct WindowProxy {
|
||||||
reflector_: Reflector
|
reflector_: Reflector
|
||||||
}
|
}
|
||||||
|
@ -34,7 +36,7 @@ impl BindingObject for WindowProxy {
|
||||||
|
|
||||||
impl Reflectable for WindowProxy {
|
impl Reflectable for WindowProxy {
|
||||||
fn reflector(&mut self) -> &mut Reflector {
|
fn reflector(&mut self) -> &mut Reflector {
|
||||||
return self.reflector()
|
unsafe { cast::transmute(self.reflector_) }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn wrap_object_shared(@mut self, _cx: *JSContext, _scope: *JSObject) -> *JSObject {
|
fn wrap_object_shared(@mut self, _cx: *JSContext, _scope: *JSObject) -> *JSObject {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue