]> git.kaiwu.me - njs.git/commit
Modules: fixed common helper exception classes
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 3 Jun 2026 02:07:40 +0000 (19:07 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 3 Jun 2026 21:34:17 +0000 (14:34 -0700)
commit0bdc82115c1020281e98fd6b00395ea8b7c837fe
treed038a80d3435bb6fb1cba2dafa649326bbc4de58
parent5ea549cf54ce0de22e2c10b1c470406cb90f4725
Modules: fixed common helper exception classes

Align common helper failures with the exception policy used by both engines:
invalid numeric conversion is TypeError, and missing external receiver/context
for common log helpers is TypeError rather than an internal host failure.

The numeric conversion message changes from "is not a number" to
"invalid number" to match the QuickJS helper text.
nginx/ngx_js.c