mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
fix indent & name
This commit is contained in:
parent
8db917849a
commit
853bcba0d1
1 changed files with 7 additions and 7 deletions
|
@ -223,14 +223,14 @@ impl Window {
|
||||||
|
|
||||||
let global = WindowBinding::Wrap(cx, ptr::null(), win);
|
let global = WindowBinding::Wrap(cx, ptr::null(), win);
|
||||||
unsafe {
|
unsafe {
|
||||||
let fns = ["window","self"];
|
let fn_names = ["window","self"];
|
||||||
for str in fns.iter() {
|
for str in fn_names.iter() {
|
||||||
do (*str).to_c_str().with_ref |name| {
|
do (*str).to_c_str().with_ref |name| {
|
||||||
JS_DefineProperty(cx, global, name,
|
JS_DefineProperty(cx, global, name,
|
||||||
RUST_OBJECT_TO_JSVAL(global),
|
RUST_OBJECT_TO_JSVAL(global),
|
||||||
Some(GetJSClassHookStubPointer(PROPERTY_STUB) as JSPropertyOp),
|
Some(GetJSClassHookStubPointer(PROPERTY_STUB) as JSPropertyOp),
|
||||||
Some(GetJSClassHookStubPointer(STRICT_PROPERTY_STUB) as JSStrictPropertyOp),
|
Some(GetJSClassHookStubPointer(STRICT_PROPERTY_STUB) as JSStrictPropertyOp),
|
||||||
JSPROP_ENUMERATE);
|
JSPROP_ENUMERATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue