]> git.kaiwu.me - njs.git/commit
Modules: adding NUL byte at the end of the global script.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 26 Jul 2024 02:02:35 +0000 (19:02 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 16 Aug 2024 15:26:45 +0000 (08:26 -0700)
commit58b581461d8cc77037de9000e1dde9b74e314aee
tree459f4c6cf40e52a1d2e073ed9b9986e9b50f81cc
parentd1c615eaa208a4e7c92b661f8f7674e92f19aedf
Modules: adding NUL byte at the end of the global script.

Even though QuickJS takes length as an argument, when parsing the code,
it expects NUL byte at the end.

This change is similar to 184d2a39cb5 (0.8.5).
nginx/ngx_js.c