Bug 686582 - Begin to specialize ObjectOps::deleteElement to not just delegate to ObjectOps::deleteProperty. r=dvander
This commit is contained in:
@@ -920,6 +920,16 @@ js_SuppressDeletedProperty(JSContext *cx, JSObject *obj, jsid id)
|
||||
return SuppressDeletedPropertyHelper(cx, obj, SingleIdPredicate(id));
|
||||
}
|
||||
|
||||
bool
|
||||
js_SuppressDeletedElement(JSContext *cx, JSObject *obj, uint32 index)
|
||||
{
|
||||
jsid id;
|
||||
if (!IndexToId(cx, index, &id))
|
||||
return false;
|
||||
JS_ASSERT(id == js_CheckForStringIndex(id));
|
||||
return SuppressDeletedPropertyHelper(cx, obj, SingleIdPredicate(id));
|
||||
}
|
||||
|
||||
class IndexRangePredicate {
|
||||
jsint begin, end;
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user