mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
Rename v7_get_global_object() -> v7_get_global()
PUBLISHED_FROM=91a306d5dbc55d65505904b1a19cca5bbe9f58cc
This commit is contained in:
parent
776103068f
commit
6400536282
@ -1910,7 +1910,7 @@ enum v7_err mg_enable_javascript(struct mg_mgr *m, struct v7 *v7,
|
|||||||
const char *init_file_name) {
|
const char *init_file_name) {
|
||||||
v7_val_t v;
|
v7_val_t v;
|
||||||
m->v7 = v7;
|
m->v7 = v7;
|
||||||
v7_set_method(v7, v7_get_global_object(v7), "mg_send", mg_send_js);
|
v7_set_method(v7, v7_get_global(v7), "mg_send", mg_send_js);
|
||||||
return v7_exec_file(v7, init_file_name, &v);
|
return v7_exec_file(v7, init_file_name, &v);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -4107,7 +4107,7 @@ static void http_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
|||||||
|
|
||||||
if (v7 != NULL) {
|
if (v7 != NULL) {
|
||||||
/* Lookup JS callback */
|
/* Lookup JS callback */
|
||||||
v1 = v7_get(v7, v7_get_global_object(v7), "Http", ~0);
|
v1 = v7_get(v7, v7_get_global(v7), "Http", ~0);
|
||||||
v2 = v7_get(v7, v1, ev_name, ~0);
|
v2 = v7_get(v7, v1, ev_name, ~0);
|
||||||
|
|
||||||
/* Create callback params. TODO(lsm): own/disown those */
|
/* Create callback params. TODO(lsm): own/disown those */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user