Skip to content

Commit

Permalink
Fix infinite-looping reflector() implementation for WindowProxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
bholley committed Oct 10, 2013
1 parent b0ac591 commit e6be738
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/script/dom/windowproxy.rs
Expand Up @@ -7,6 +7,8 @@ use script_task::page_from_context;

use js::jsapi::{JSContext, JSObject};

use std::cast;

pub struct WindowProxy {
reflector_: Reflector
}
Expand Down Expand Up @@ -34,7 +36,7 @@ impl BindingObject for WindowProxy {

impl Reflectable for WindowProxy {
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 {
Expand Down

0 comments on commit e6be738

Please sign in to comment.