]> git.kaiwu.me - njs.git/commit
Modules: fixed incorrect config rejections introduced in d157f56.
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 16 Aug 2025 00:28:47 +0000 (17:28 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Mon, 25 Aug 2025 16:40:24 +0000 (09:40 -0700)
commit2c93ca079f497b68ea1680d282f705c926cf7210
tree5310c93683d2f6f593b91de3e627c55d1c251ec9
parentd157f564d665d806d4b5072c59d3e4760eddb966
Modules: fixed incorrect config rejections introduced in d157f56.

d157f56 introduced configure time checks for js_set and js_periodic
directives. It turned out to be too strict.

The fix is to remove them completely as there is no way to track
variable usage context in configure time.
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c
nginx/t/js_variables_location.t [new file with mode: 0644]
nginx/t/stream_js_variables_server.t [new file with mode: 0644]