]> git.kaiwu.me - njs.git/commit
QuickJS: align XML tag assignment with njs
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 10 Sep 2026 23:02:35 +0000 (16:02 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 11 Sep 2026 01:29:10 +0000 (18:29 -0700)
commit421dd067dc4e5a4d58199bba0c5c14ac2f52448f
treeeaf62a4ef64532b4102cc1eddb3829804a4ef9ec
parentee8c51b88395c1c0264adedf1847006e7204d90e
QuickJS: align XML tag assignment with njs

Previously, assigning null or undefined to node.$tag$name removed
matching children in QuickJS, while the njs engine rejected every
assignment.

The fix is to distinguish property assignment from deletion in the
QuickJS exotic property handler. Assignments now throw TypeError in both
engines, while delete node.$tag$name remains supported.
external/qjs_xml_module.c
test/xml/xml.t.mjs