mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1136520. Stop parenting Xray expando objects to a non-global. r=bholley
This commit is contained in:
parent
554e87c495
commit
a00f32b28f
@ -942,10 +942,9 @@ XrayTraits::attachExpandoObject(JSContext *cx, HandleObject target,
|
||||
}
|
||||
#endif
|
||||
|
||||
// Create the expando object. We parent it directly to the target object.
|
||||
// Create the expando object.
|
||||
RootedObject expandoObject(cx,
|
||||
JS_DeprecatedNewObjectWithGivenProtoAndParent(cx, &ExpandoObjectClass,
|
||||
JS::NullPtr(), target));
|
||||
JS_NewObjectWithGivenProto(cx, &ExpandoObjectClass, JS::NullPtr()));
|
||||
if (!expandoObject)
|
||||
return nullptr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user