diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2023-11-21 08:57:09 -0800 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2023-11-21 08:57:09 -0800 |
commit | 735ec1d89d25d014870452ba1600a8cd9dec5641 (patch) | |
tree | 300586842972d0d4f0ed2fc96319abf78d8516bf /nginx/ngx_http_js_module.c | |
parent | 2743bab180ab067ea6d146c92a30a7f88bff7b2a (diff) | |
download | njs-735ec1d89d25d014870452ba1600a8cd9dec5641.tar.gz njs-735ec1d89d25d014870452ba1600a8cd9dec5641.zip |
Renaming ngx_js_retval() to ngx_js_exception().
After previous commit ngx_js_retval() is only used for getting the
exception value and should be renamed to better reflect the purpose.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 6c74a4e5..5500cc04 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1401,7 +1401,7 @@ ngx_http_js_init_vm(ngx_http_request_t *r, njs_int_t proto_id) } if (njs_vm_start(ctx->vm, njs_value_arg(&retval)) == NJS_ERROR) { - ngx_js_retval(ctx->vm, NULL, &exception); + ngx_js_exception(ctx->vm, &exception); ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "js exception: %V", &exception); @@ -4526,7 +4526,7 @@ ngx_http_js_handle_vm_event(ngx_http_request_t *r, njs_vm_event_t vm_event, (ngx_int_t) rc, vm_event); if (rc == NJS_ERROR) { - ngx_js_retval(ctx->vm, NULL, &exception); + ngx_js_exception(ctx->vm, &exception); ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "js exception: %V", &exception); |