Bug 888463 - Remove code to skip shrinkSlots for call objects. r=jandem

This commit is contained in:
Terrence Cole 2013-07-02 11:24:47 -07:00
Родитель e818cf6613
Коммит 9833432481
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -2611,15 +2611,6 @@ JSObject::shrinkSlots(JSContext *cx, HandleObject obj, uint32_t oldCount, uint32
{ {
JS_ASSERT(newCount < oldCount); JS_ASSERT(newCount < oldCount);
/*
* Refuse to shrink slots for call objects. This only happens in a very
* obscure situation (deleting names introduced by a direct 'eval') and
* allowing the slots pointer to change may require updating pointers in
* the function's active args/vars information.
*/
if (obj->is<CallObject>())
return;
if (newCount == 0) { if (newCount == 0) {
FreeSlots(cx, obj->slots); FreeSlots(cx, obj->slots);
obj->slots = NULL; obj->slots = NULL;