Bug 942453 - Handlify IndexToId. r=terrence

This commit is contained in:
Tom Schuster
2013-12-18 13:30:49 +01:00
parent a846e99905
commit ca898e081a
11 changed files with 45 additions and 60 deletions

View File

@@ -1124,7 +1124,7 @@ bool
js_SuppressDeletedElement(JSContext *cx, HandleObject obj, uint32_t index)
{
RootedId id(cx);
if (!IndexToId(cx, index, id.address()))
if (!IndexToId(cx, index, &id))
return false;
return js_SuppressDeletedProperty(cx, obj, id);
}