Backed out changeset 3d3f25a67e24

This commit is contained in:
Dão Gottwald 2011-07-28 11:51:14 +02:00
parent fa435d3a55
commit be402e81a8

View File

@ -422,7 +422,7 @@ nsFrameMessageManager::ReceiveMessage(nsISupports* aTarget,
jsval thisValue = JSVAL_VOID;
jsval funval = JSVAL_VOID;
if (JS_ObjectIsCallable(ctx, object)) {
if (JS_ObjectIsFunction(ctx, object)) {
// If the listener is a JS function:
funval = OBJECT_TO_JSVAL(object);
@ -445,7 +445,7 @@ nsFrameMessageManager::ReceiveMessage(nsISupports* aTarget,
JSVAL_IS_OBJECT(funval) &&
!JSVAL_IS_NULL(funval));
JSObject* funobject = JSVAL_TO_OBJECT(funval);
NS_ENSURE_STATE(JS_ObjectIsCallable(ctx, funobject));
NS_ENSURE_STATE(JS_ObjectIsFunction(ctx, funobject));
thisValue = OBJECT_TO_JSVAL(object);
}