Bug 1112778, part 9 - Rename JSObject::freeze -> FreezeObject and others. r=Waldo.

Some of the bits of implementation added for ES5 have been given names in ES6, so
    JSObject::sealOrFreeze -> js::SetIntegrityLevel
    JSObject::isSealedOrFrozen -> js::TestIntegrityLevel
    JSObject::ImmutabilityType -> js::IntegrityLevel
This commit is contained in:
Jason Orendorff
2014-12-18 10:48:42 -06:00
parent 1f0a68cd53
commit 134d3aec0e
10 changed files with 107 additions and 96 deletions

View File

@@ -1440,7 +1440,7 @@ GlobalObject::initStopIterationClass(JSContext *cx, Handle<GlobalObject *> globa
return true;
RootedObject proto(cx, global->createBlankPrototype(cx, &StopIterationObject::class_));
if (!proto || !JSObject::freeze(cx, proto))
if (!proto || !FreezeObject(cx, proto))
return false;
// This should use a non-JSProtoKey'd slot, but this is easier for now.