diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index 86f868b39c1..05c1463d5c4 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -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);