mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Remove a useless local variable.
This commit is contained in:
parent
10f849fc5b
commit
300f2df203
1 changed files with 1 additions and 3 deletions
|
@ -4753,9 +4753,7 @@ class CGDOMJSProxyHandler_hasOwn(CGAbstractExternMethod):
|
||||||
return indexed + """\
|
return indexed + """\
|
||||||
let expando = RootedObject::new(cx, get_expando_object(proxy));
|
let expando = RootedObject::new(cx, get_expando_object(proxy));
|
||||||
if !expando.ptr.is_null() {
|
if !expando.ptr.is_null() {
|
||||||
let mut b = true;
|
let ok = JS_HasPropertyById(cx, expando.handle(), id, bp);
|
||||||
let ok = JS_HasPropertyById(cx, expando.handle(), id, &mut b);
|
|
||||||
*bp = b;
|
|
||||||
if !ok || *bp {
|
if !ok || *bp {
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue