diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2022-07-25 18:40:24 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2022-07-25 18:40:24 -0700 |
commit | f4020a4f16b65a4d3b3abae4b44e900fb75ff9d8 (patch) | |
tree | b1fd7a8f31d1961961eef3b4a1c60031c99d956f /nginx/ngx_http_js_module.c | |
parent | 5e0434747e3b93e04c661f90dee8ef22e190be22 (diff) | |
download | njs-f4020a4f16b65a4d3b3abae4b44e900fb75ff9d8.tar.gz njs-f4020a4f16b65a4d3b3abae4b44e900fb75ff9d8.zip |
Added soft deprecation warning for deprecated methods and properties.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 6a3527c3..f948c007 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -2572,6 +2572,8 @@ ngx_http_js_ext_get_request_body(njs_vm_t *vm, njs_object_prop_t *prop, ngx_http_js_ctx_t *ctx; ngx_http_request_t *r; + njs_deprecated(vm, "r.requestBody"); + r = njs_vm_external(vm, ngx_http_js_request_proto_id, value); if (r == NULL) { njs_value_undefined_set(retval); @@ -3416,6 +3418,8 @@ ngx_http_js_ext_get_response_body(njs_vm_t *vm, njs_object_prop_t *prop, ngx_http_js_ctx_t *ctx; ngx_http_request_t *r; + njs_deprecated(vm, "r.responseBody"); + r = njs_vm_external(vm, ngx_http_js_request_proto_id, value); if (r == NULL) { njs_value_undefined_set(retval); |