]> git.kaiwu.me - njs.git/commit
Align SyntaxError reporting with other JS engines.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 10 Feb 2026 00:39:31 +0000 (16:39 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 10 Feb 2026 21:40:50 +0000 (13:40 -0800)
commit1dbce7d937df3e43406f1e27986344df46d5066a
tree82c5bd21dcdac7f03128e10214cc8a504c332a07
parent0b9cf986aa87b7f17f274e615904351ac065051f
Align SyntaxError reporting with other JS engines.

Previously, "in <file>:<file>" was a part of the error message. Now
the file name is reported as "stack" property.

This fixes #1005 issue on Github.
src/njs_error.c
src/njs_error.h
src/njs_parser.c
src/test/njs_unit_test.c
test/shell_test_njs.exp