mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
import changes from rmottola/Arctic-Fox:
- Bug 1140670 part 1. Just use the global, not the proto's parent, as the default parent in NewObjectWithGivenTaggedProto. (d2ef7ee90) - Bug 1140670 part 2. Just use the global as the parent in js::CreateThis and js::CreateThisForFunctionWithProto. (025d25703) - Bug 1140670 part 3. Add an assertParentIs() for asserting the parent is something specific and use it in various places to eliminate getParent() calls. (d814a6344) - Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. (d657e25c7) - Bug 1140573 part 2. Drop the parent argument from JS_NewFunctionById. (2259f4027) - Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. (84ab2d944) - Bug 1140573 part 4. Drop the parent argument from js::NewFunctionByIdWithReserved. (a10821f1a) - Bug 1142266. Remove the parent argument from js::NewObjectWithProto. (efe9144e3) - Bug 1142241. Stop using getParent() in js::GetObjectEnvironmentObjectForFunction. (b04a4a38e) - some pointer style for better patching (608e1a6ad)
This commit is contained in:
+2
-1
@@ -3224,8 +3224,9 @@ CreateArrayPrototype(JSContext* cx, JSProtoKey key)
|
||||
if (!NewObjectMetadata(cx, &metadata))
|
||||
return nullptr;
|
||||
|
||||
proto->assertParentIs(cx->global());
|
||||
RootedShape shape(cx, EmptyShape::getInitialShape(cx, &ArrayObject::class_, TaggedProto(proto),
|
||||
proto->getParent(), metadata,
|
||||
cx->global(), metadata,
|
||||
gc::FINALIZE_OBJECT0));
|
||||
if (!shape)
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user