Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "[SSJS] : Ape.registerHookBadCmd() : fix wrong behaviour when …

…returning "true""

This reverts commit 5d5303867f96e3308cabb0a141c6996471144a9f.
  • Loading branch information...
commit 3a6e0be5ade1968ef12d361f340ec573ea7a6f09 1 parent 5fdd24c
efyx authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/libape-spidermonkey.c
View
2  modules/libape-spidermonkey.c
@@ -2839,7 +2839,7 @@ static int ape_fire_hook(ape_sm_callback *cbk, JSObject *obj, JSObject *cb, call
flagret = process_cmd_return(cbk->cx, rval, callbacki, g_ape);
- return (cbk->type == APE_BADCMD && flagret == RETURN_CONTINUE ? RETURN_BAD_CMD : flagret);
+ return (cbk->type == APE_BADCMD && flagret == RETURN_BAD_PARAMS ? RETURN_BAD_CMD : flagret);
}
static void ape_fire_callback(const char *name, uintN argc, jsval *argv, acetables *g_ape)
Please sign in to comment.
Something went wrong with that request. Please try again.