]> git.kaiwu.me - njs.git/commit
Attach stack in error constructors.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 30 Jan 2026 01:18:31 +0000 (17:18 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 5 Feb 2026 23:32:12 +0000 (15:32 -0800)
commit05eb4436fe09800af1a6ea83d91b734d1111fffc
tree222807f0bc10f48cd1a669ded0343322f0b7c5fb
parent59b0174cffeb46df3bde12fd19a41690cf45a1f6
Attach stack in error constructors.

This aligns njs with QuickJS and most other JS engines.
12 files changed:
src/njs_error.c
src/njs_error.h
src/njs_promise.c
src/njs_vmcode.c
src/test/njs_unit_test.c
test/js/error_stack_created.t.js [new file with mode: 0644]
test/js/error_stack_promise_all.t.js [new file with mode: 0644]
test/js/error_stack_promise_any_inner.t.js [new file with mode: 0644]
test/js/error_stack_promise_race.t.js [new file with mode: 0644]
test/js/error_stack_promise_reject.t.js [new file with mode: 0644]
test/js/error_stack_type_error.t.js [new file with mode: 0644]
test/shell_test_njs.exp