]> git.kaiwu.me - njs.git/commit
Fetch: fixed exception classes
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 3 Jun 2026 02:05:19 +0000 (19:05 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 3 Jun 2026 21:34:17 +0000 (14:34 -0700)
commit6292a22a73ada499549ec9b5d99117c29570bd9d
tree0f0184b03f2ce09afc8e69cfbf64723bb83a3297
parent02c031a49a582749c3eb51cae23840f3fbe6c206
Fetch: fixed exception classes

Report API misuse in Fetch, Request, Response, and Headers as TypeError, and
report status bounds violations as RangeError.  Keep internal host failures as
InternalError and preserve conversion helper exceptions where they already
provide the real cause.
nginx/ngx_js_fetch.c
nginx/ngx_qjs_fetch.c
nginx/t/js_fetch_objects.t