]> git.kaiwu.me - njs.git/commit
Change: non-compliant deprecated String methods were removed.
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 6 May 2023 03:08:56 +0000 (20:08 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Sat, 6 May 2023 03:08:56 +0000 (20:08 -0700)
commitbb0aac71f2139a96a5cb46473f42797a2fcf2f65
treea1ff133b4cfdf7ade9d9decf80421e2971a3df69
parent47a47f5a43e4e7ac2eaa93041757070707715ec5
Change: non-compliant deprecated String methods were removed.

The following methods were removed:
    String.bytesFrom(),
    String.prototype.fromBytes(),
    String.prototype.fromUTF8(),
    String.prototype.toBytes(),
    String.prototype.toUTF8(),
    String.prototype.toString(encoding).

Because String.bytesFrom() was used to test the existing code
which works with byte strings it was replaced with $262.bytesString()
which is only available in unit tests.
src/njs_string.c
src/test/njs_externals_test.c
src/test/njs_unit_test.c