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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user