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
parent bb4fd3c0ab
commit fa08e98f10

View File

@ -2331,7 +2331,7 @@ DefinePropertyOnObject(JSContext *cx, JSObject *obj, const PropDesc &desc,
* redefining it or we had invoked its setter to change its value).
*/
if (callDelProperty) {
Value dummy;
Value dummy = UndefinedValue();
if (!CallJSPropertyOp(cx, obj2->getClass()->delProperty, obj2, desc.id, &dummy))
return false;
}