properly unlock object, preventing ugly crash with |if (foo in noFoo)|

git-svn-id: svn://10.0.0.236/trunk@49118 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shaver%netscape.com
1999-09-27 06:04:54 +00:00
parent ec62b83cb4
commit 796d9f28d8

View File

@@ -1257,7 +1257,8 @@ js_Interpret(JSContext *cx, jsval *result)
if (!ok)
goto out;
PUSH_OPND(BOOLEAN_TO_JSVAL(prop != NULL));
OBJ_DROP_PROPERTY(cx, obj, prop);
if (prop)
OBJ_DROP_PROPERTY(cx, obj2, prop);
break;
#endif /* JS_HAS_IN_OPERATOR */