]> git.kaiwu.me - njs.git/commit
Modules: fixed stack attach for native fetch exceptions for qjs.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 4 Feb 2026 02:17:16 +0000 (18:17 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Sat, 7 Feb 2026 01:46:14 +0000 (17:46 -0800)
commit726bd811761618b800d683ba23cdff9ad0737f5b
tree1189b3f6fc6d660d14980181482fc72781bd53c6
parent05eb4436fe09800af1a6ea83d91b734d1111fffc
Modules: fixed stack attach for native fetch exceptions for qjs.

JS_ThrowInternalError() captures backtrace outside of JS call, resulting
in empty "stack" string.  Later, while unwinding, is_backtrace_needed()
returns false because "stack" property exists.

JS_NewError() does not try to attach stack, as a result a stack is
attached later during unwinding.
auto/quickjs
external/qjs_fs_module.c
nginx/ngx_qjs_fetch.c
src/qjs.h