mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Use &dummy_sprop consistently (followup to 246441).
This commit is contained in:
parent
e1e1c25bb8
commit
5134feecbc
@ -3544,7 +3544,7 @@ xml_defineProperty(JSContext *cx, JSObject *obj, jsid id, jsval value,
|
||||
if (!ok)
|
||||
return JS_FALSE;
|
||||
if (propp)
|
||||
*propp = (JSProperty *) JS_TRUE;
|
||||
*propp = (JSProperty *) &dummy_sprop;
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
@ -3578,7 +3578,7 @@ FoundProperty(JSContext *cx, JSObject *obj, jsid id, JSProperty *prop,
|
||||
{
|
||||
JSBool ok;
|
||||
|
||||
if (prop == (JSProperty *) JS_TRUE) {
|
||||
if (prop == (JSProperty *) &dummy_sprop) {
|
||||
ok = *foundp = JS_TRUE;
|
||||
} else {
|
||||
JS_LOCK_OBJ_VOID(cx, obj,
|
||||
|
Loading…
Reference in New Issue
Block a user