Bug 1112778, part 5 - Rename JSObject::defineGeneric etc. -> js::DefineProperty, js::DefineOwnProperty -> js::StandardDefineProperty (for the moment--the plan is to unite these soon, both the name and the implementation). r=Waldo.

This commit is contained in:
Jason Orendorff
2014-12-18 06:54:09 -06:00
parent fc99a057ea
commit b41daa37f2
34 changed files with 306 additions and 359 deletions

View File

@@ -829,11 +829,11 @@ js::CreateItrResultObject(JSContext *cx, HandleValue value, bool done)
if (!obj)
return nullptr;
if (!JSObject::defineProperty(cx, obj, cx->names().value, value))
if (!DefineProperty(cx, obj, cx->names().value, value))
return nullptr;
RootedValue doneBool(cx, BooleanValue(done));
if (!JSObject::defineProperty(cx, obj, cx->names().done, doneBool))
if (!DefineProperty(cx, obj, cx->names().done, doneBool))
return nullptr;
return obj;