Bug 784400 - adapt GlobalObject::hasIntrinsicFunction to changes in self-hosting initialization. r=luke

--HG--
extra : rebase_source : 6afbfcc0264e44bf7a740635e47ee1ea6ce23655
This commit is contained in:
Till Schneidereit 2012-10-21 20:48:06 -07:00
parent e67a9eba19
commit 749af984d3

View File

@ -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) {