mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Another bug 599009 followup. Don't assert things about uninitialized quantities.
This commit is contained in:
parent
31e1c63e5b
commit
a69bdff134
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user