]> git.kaiwu.me - njs.git/commit
Fixed RegExp.prototype[Symbol.replace] when replace val is function.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 3 Sep 2020 13:30:15 +0000 (13:30 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 3 Sep 2020 13:30:15 +0000 (13:30 +0000)
commitd8eaf8c339a6961a6c504ae0a4e8c231a9ec9338
tree0a98e2345092a51e2ea730bbefdb3592c97ba327
parent37de9d66c7a7a1b184a52f5a8fe6a0f700c351f8
Fixed RegExp.prototype[Symbol.replace] when replace val is function.

Previously, a custom function received garbage value as the first
argument.
src/njs_regexp.c
src/test/njs_unit_test.c