Remove JSObject::title. Bug 606029, r=igor.

This commit is contained in:
Jason Orendorff
2010-10-22 19:04:22 -05:00
parent 985881dc20
commit 85f915b4bd
30 changed files with 170 additions and 926 deletions

View File

@@ -254,8 +254,6 @@ static bool
EnumerateNativeProperties(JSContext *cx, JSObject *obj, JSObject *pobj, uintN flags, IdSet &ht,
typename EnumPolicy::ResultVector *props)
{
JS_LOCK_OBJ(cx, pobj);
size_t initialLength = props->length();
/* Collect all unique properties from this object's scope. */
@@ -272,8 +270,6 @@ EnumerateNativeProperties(JSContext *cx, JSObject *obj, JSObject *pobj, uintN fl
}
Reverse(props->begin() + initialLength, props->end());
JS_UNLOCK_OBJ(cx, pobj);
return true;
}
@@ -922,12 +918,11 @@ SuppressDeletedPropertyHelper(JSContext *cx, JSObject *obj, IdPredicate predicat
return false;
if (prop) {
uintN attrs;
if (obj2.object()->isNative()) {
if (obj2.object()->isNative())
attrs = ((Shape *) prop)->attributes();
JS_UNLOCK_OBJ(cx, obj2.object());
} else if (!obj2.object()->getAttributes(cx, *idp, &attrs)) {
else if (!obj2.object()->getAttributes(cx, *idp, &attrs))
return false;
}
if (attrs & JSPROP_ENUMERATE)
continue;
}