]> git.kaiwu.me - njs.git/commit
QuickJS: fixed r.subrequest() to a location with JS handler.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 14 Oct 2025 00:37:11 +0000 (17:37 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 14 Oct 2025 04:34:02 +0000 (21:34 -0700)
commit82a588c17bc7673ac61ad7871280e049fb5ea353
tree43f89189307c6c1057bfbdf515cd36019914256e
parent857c7364f29fcce74c31472deb912e5b79ca1a4a
QuickJS: fixed r.subrequest() to a location with JS handler.

Previously, when a subrequest location had a JS handler, an object of a
subrequest JS context was provided as an argument to a parent contexts.
This may cause all sorts of problems due to incorrect reference
counting.

After this change in bellard/quickjs@42eb2795 the bug became apparent.
nginx/ngx_http_js_module.c