From 8b2a3c8d5b7d9779ffe269f32398c3390dce444f Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Thu, 30 Jan 2014 07:45:16 -0800 Subject: [PATCH] Bug 959012 - Remove unused cx parameter from JS_IdentifyClassPrototype. r=jorendorff --- js/src/jsapi.cpp | 5 +---- js/src/jsapi.h | 2 +- js/xpconnect/wrappers/ChromeObjectWrapper.cpp | 2 +- js/xpconnect/wrappers/WrapperFactory.cpp | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 2fbf2c6a2f0c..b6a9fd7929ff 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -1374,11 +1374,8 @@ JS_GetClassPrototype(JSContext *cx, JSProtoKey key, MutableHandleObject objp) } JS_PUBLIC_API(JSProtoKey) -JS_IdentifyClassPrototype(JSContext *cx, JSObject *obj) +JS_IdentifyClassPrototype(JSObject *obj) { - AssertHeapIsIdle(cx); - CHECK_REQUEST(cx); - assertSameCompartment(cx, obj); JS_ASSERT(!obj->is()); return js_IdentifyClassPrototype(obj); } diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 0463b64bb07e..aec1f19bc92e 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -1796,7 +1796,7 @@ extern JS_PUBLIC_API(bool) JS_GetClassPrototype(JSContext *cx, JSProtoKey key, JS::MutableHandle objp); extern JS_PUBLIC_API(JSProtoKey) -JS_IdentifyClassPrototype(JSContext *cx, JSObject *obj); +JS_IdentifyClassPrototype(JSObject *obj); extern JS_PUBLIC_API(JSProtoKey) JS_IdToProtoKey(JSContext *cx, JS::HandleId id); diff --git a/js/xpconnect/wrappers/ChromeObjectWrapper.cpp b/js/xpconnect/wrappers/ChromeObjectWrapper.cpp index e4b52e152fa2..99110413e44e 100644 --- a/js/xpconnect/wrappers/ChromeObjectWrapper.cpp +++ b/js/xpconnect/wrappers/ChromeObjectWrapper.cpp @@ -36,7 +36,7 @@ PropIsFromStandardPrototype(JSContext *cx, JS::MutableHandle