Bug 453383 - Confusing comment, bogus indentation in jsobj.cpp (r=mrbkap)

This commit is contained in:
Jason Orendorff
2008-09-03 15:30:13 -05:00
parent f9a5b49274
commit a0f9ff7067

View File

@@ -3195,12 +3195,12 @@ js_DefineNativeProperty(JSContext *cx, JSObject *obj, jsid id, jsval value,
goto bad;
if (!sprop) {
/* Add or replace an existing property of the same id. */
/* Add a new property, or replace an existing one of the same id. */
if (clasp->flags & JSCLASS_SHARE_ALL_PROPERTIES)
attrs |= JSPROP_SHARED;
sprop = js_AddScopeProperty(cx, scope, id, getter, setter,
SPROP_INVALID_SLOT, attrs, flags,
shortid);
sprop = js_AddScopeProperty(cx, scope, id, getter, setter,
SPROP_INVALID_SLOT, attrs, flags,
shortid);
if (!sprop)
goto bad;
}