aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2022-12-07 18:11:56 -0800
committerDmitry Volyntsev <xeioex@nginx.com>2022-12-07 18:11:56 -0800
commitc568c31e3ba73f8aafb44233f352e7855528941a (patch)
tree525304fc671fcccc8e7cd269a377db64cb8b2554 /nginx/ngx_http_js_module.c
parent60006dc0617ce3503c0c8b4af1d65d219b6b106b (diff)
downloadnjs-c568c31e3ba73f8aafb44233f352e7855528941a.tar.gz
njs-c568c31e3ba73f8aafb44233f352e7855528941a.zip
Extended njs_vm_function_alloc().
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index ac38415f..8f3ca9e6 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -3191,7 +3191,8 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
}
if (!detached && callback == NULL) {
- callback = njs_vm_function_alloc(vm, ngx_http_js_promise_trampoline);
+ callback = njs_vm_function_alloc(vm, ngx_http_js_promise_trampoline, 0,
+ 0);
if (callback == NULL) {
goto memory_error;
}