mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784400 - adapt GlobalObject::hasIntrinsicFunction to changes in self-hosting initialization. r=luke
--HG-- extra : rebase_source : 6afbfcc0264e44bf7a740635e47ee1ea6ce23655
This commit is contained in:
parent
e67a9eba19
commit
749af984d3
@ -363,9 +363,9 @@ class GlobalObject : public JSObject
|
||||
}
|
||||
|
||||
bool hasIntrinsicFunction(JSContext *cx, PropertyName *name) {
|
||||
RootedObject holder(cx, &getSlotRef(INTRINSICS).toObject());
|
||||
Rooted<GlobalObject *> self(cx, this);
|
||||
Value fun = NullValue();
|
||||
return HasDataProperty(cx, holder, NameToId(name), &fun);
|
||||
return HasDataProperty(cx, self, NameToId(name), &fun);
|
||||
}
|
||||
|
||||
bool getIntrinsicValue(JSContext *cx, PropertyName *name, MutableHandleValue value) {
|
||||
|
Loading…
Reference in New Issue
Block a user