From 749af984d3cbd5bd7b15badb71a1fb2e04e48b76 Mon Sep 17 00:00:00 2001 From: Till Schneidereit Date: Sun, 21 Oct 2012 20:48:06 -0700 Subject: [PATCH] Bug 784400 - adapt GlobalObject::hasIntrinsicFunction to changes in self-hosting initialization. r=luke --HG-- extra : rebase_source : 6afbfcc0264e44bf7a740635e47ee1ea6ce23655 --- js/src/vm/GlobalObject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/vm/GlobalObject.h b/js/src/vm/GlobalObject.h index 992a7e88ab5..c57097b3322 100644 --- a/js/src/vm/GlobalObject.h +++ b/js/src/vm/GlobalObject.h @@ -363,9 +363,9 @@ class GlobalObject : public JSObject } bool hasIntrinsicFunction(JSContext *cx, PropertyName *name) { - RootedObject holder(cx, &getSlotRef(INTRINSICS).toObject()); + Rooted 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) {