]> git.kaiwu.me - njs.git/commit
Fixed template literal from producing byte-strings.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 9 Jun 2022 04:06:16 +0000 (21:06 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 9 Jun 2022 04:06:16 +0000 (21:06 -0700)
commit2e84f1ae83b1c85fff4c36a42bbe27ad12a3dd37
tree8a21935c0dfc594de530026617ace9eee11c7bcc
parent3152e35ee0f7df305763af6b693e0d5e1180e4a4
Fixed template literal from producing byte-strings.

Previously, as a side effect of creating a key for the values hash a
byte-string was created.  This byte-string was reused internally and
might appear in template literal.  As a result a byte-string was
produced as a value for a template literal.  Byte-strings are obsolete
and are scheduled for removal because they can cause issues with
internal routines not prepared for them.
src/njs_generator.c
src/test/njs_unit_test.c