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
parent 31e1c63e5b
commit a69bdff134
2 changed files with 2 additions and 2 deletions

View File

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

View File

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