Use &dummy_sprop consistently (followup to 246441).
git-svn-id: svn://10.0.0.236/trunk@163241 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c0636fe3c2
commit
1f06a72acd
@ -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…
x
Reference in New Issue
Block a user