Reland bug 473228 and bug 530507

This commit is contained in:
Robert Sayre 2009-12-01 16:02:09 -05:00
commit 3192563f6f

View File

@ -4760,7 +4760,7 @@ js_SetPropertyHelper(JSContext *cx, JSObject *obj, jsid id, uintN defineHow,
}
}
sprop = scope->addProperty(cx, id, getter, setter, SPROP_INVALID_SLOT,
sprop = scope->putProperty(cx, id, getter, setter, SPROP_INVALID_SLOT,
attrs, flags, shortid);
if (!sprop) {
JS_UNLOCK_SCOPE(cx, scope);