Use &dummy_sprop consistently (followup to 246441).

This commit is contained in:
brendan%mozilla.org 2004-10-05 11:44:14 +00:00
parent e1e1c25bb8
commit 5134feecbc

View File

@ -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,