Bug 1112778, part 3 - Rename JSObject::preventExtensions -> js::PreventExtensions and a few others, and move them to jsobj.cpp. Uninline several functions that have no business being inlined. r=Waldo.
This commit is contained in:
@@ -352,7 +352,7 @@ Snapshot(JSContext *cx, HandleObject pobj_, unsigned flags, AutoIdVector *props)
|
||||
if (flags & JSITER_OWNONLY)
|
||||
break;
|
||||
|
||||
if (!JSObject::getProto(cx, pobj, &pobj))
|
||||
if (!GetPrototype(cx, pobj, &pobj))
|
||||
return false;
|
||||
|
||||
} while (pobj != nullptr);
|
||||
@@ -1163,7 +1163,7 @@ SuppressDeletedPropertyHelper(JSContext *cx, HandleObject obj, StringPredicate p
|
||||
* became visible as a result of this deletion.
|
||||
*/
|
||||
RootedObject proto(cx);
|
||||
if (!JSObject::getProto(cx, obj, &proto))
|
||||
if (!GetPrototype(cx, obj, &proto))
|
||||
return false;
|
||||
if (proto) {
|
||||
RootedObject obj2(cx);
|
||||
|
||||
Reference in New Issue
Block a user