Bug 630340 - Fix undefined value in compartment assertion (r=Waldo)

This commit is contained in:
Bill McCloskey 2011-01-31 13:54:28 -08:00
Родитель fc95c10820
Коммит 6c884413a1
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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;
} }