mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Backed out changeset 3d3f25a67e24
This commit is contained in:
parent
4c6cbf634d
commit
d0d9a88e6a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user