зеркало из https://github.com/mozilla/gecko-dev.git
Bug 630340 - Fix undefined value in compartment assertion (r=Waldo)
This commit is contained in:
Родитель
fc95c10820
Коммит
6c884413a1
|
@ -2331,7 +2331,7 @@ DefinePropertyOnObject(JSContext *cx, JSObject *obj, const PropDesc &desc,
|
||||||
* redefining it or we had invoked its setter to change its value).
|
* redefining it or we had invoked its setter to change its value).
|
||||||
*/
|
*/
|
||||||
if (callDelProperty) {
|
if (callDelProperty) {
|
||||||
Value dummy;
|
Value dummy = UndefinedValue();
|
||||||
if (!CallJSPropertyOp(cx, obj2->getClass()->delProperty, obj2, desc.id, &dummy))
|
if (!CallJSPropertyOp(cx, obj2->getClass()->delProperty, obj2, desc.id, &dummy))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче