public static object PropIncrDecr(object obj, string id, Context cx, int incrDecrMask)
{
Scriptable start = ToObjectOrNull(cx, obj);
if (start == null)
{
throw UndefReadError(obj, id);
}
Scriptable target = start;
object value;
do
{
value = target.Get(id, start);
if (value != ScriptableConstants.NOT_FOUND)
{
goto search_break;
}
target = target.GetPrototype();
}
while (target != null);
start.Put(id, start, NaNobj);
return NaNobj;
search_break: ;
return DoScriptableIncrDecr(target, id, start, value, incrDecrMask);
}