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