bug 490364 - fixing bad typo in js_SetProtoOrParent. r=mrbkap

This commit is contained in:
Igor Bukanov
2009-05-13 15:05:28 +02:00
parent d67d350a4d
commit 27d4283bfd

View File

@@ -286,7 +286,7 @@ js_SetProtoOrParent(JSContext *cx, JSObject *obj, uint32 slot, JSObject *pobj,
JS_ASSERT_IF(!checkForCycles, obj != pobj);
if (slot == JSSLOT_PROTO) {
JS_UNLOCK_OBJ(cx, obj);
JS_LOCK_OBJ(cx, obj);
bool ok = !!js_GetMutableScope(cx, obj);
JS_UNLOCK_OBJ(cx, obj);
if (!ok)