Another bug 599009 followup. Don't assert things about uninitialized quantities.

This commit is contained in:
Boris Zbarsky 2010-10-07 13:58:51 -04:00
Родитель 6a95cecd4c
Коммит b5b240a94c
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -5391,7 +5391,7 @@ BEGIN_CASE(JSOP_DEFFUN)
* setter to an existing property without a getter or setter. * setter to an existing property without a getter or setter.
*/ */
JS_ASSERT(!(attrs & ~(JSPROP_ENUMERATE|JSPROP_PERMANENT))); JS_ASSERT(!(attrs & ~(JSPROP_ENUMERATE|JSPROP_PERMANENT)));
JS_ASSERT(!(old & JSPROP_READONLY)); JS_ASSERT_IF(attrs != JSPROP_ENUMERATE, !(old & JSPROP_READONLY));
doSet = true; doSet = true;
} }
pobj->dropProperty(cx, prop); pobj->dropProperty(cx, prop);

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

@ -954,7 +954,7 @@ stubs::DefFun(VMFrame &f, JSFunction *fun)
* setter to an existing property without a getter or setter. * setter to an existing property without a getter or setter.
*/ */
JS_ASSERT(!(attrs & ~(JSPROP_ENUMERATE|JSPROP_PERMANENT))); JS_ASSERT(!(attrs & ~(JSPROP_ENUMERATE|JSPROP_PERMANENT)));
JS_ASSERT(!(old & JSPROP_READONLY)); JS_ASSERT_IF(attrs != JSPROP_ENUMERATE, !(old & JSPROP_READONLY));
doSet = true; doSet = true;
} }
pobj->dropProperty(cx, prop); pobj->dropProperty(cx, prop);