mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-21 09:23:10 +08:00
v7_apply() and friends take res as last argument
PUBLISHED_FROM=4b064f5e4554c5a016481bf8104c0ba9dd244083
This commit is contained in:
parent
643ee1df14
commit
d9b9d71b2d
@ -4615,7 +4615,7 @@ void http_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|||||||
/* Invoke callback. TODO(lsm): report errors */
|
/* Invoke callback. TODO(lsm): report errors */
|
||||||
v7_array_push(v7, args, v7_create_foreign(nc));
|
v7_array_push(v7, args, v7_create_foreign(nc));
|
||||||
v7_array_push(v7, args, req);
|
v7_array_push(v7, args, req);
|
||||||
if (v7_apply(v7, &res, v2, v7_create_undefined(), args) == V7_OK &&
|
if (v7_apply(v7, v2, v7_create_undefined(), args, &res) == V7_OK &&
|
||||||
v7_is_true(v7, res)) {
|
v7_is_true(v7, res)) {
|
||||||
js_callback_handled_request++;
|
js_callback_handled_request++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user