]> git.kaiwu.me - njs.git/commit
Fixed RegExp.prototype[@@replace]().
authorVadim Zhestikov <v.zhestikov@f5.com>
Thu, 2 Feb 2023 18:01:26 +0000 (10:01 -0800)
committerVadim Zhestikov <v.zhestikov@f5.com>
Thu, 2 Feb 2023 18:01:26 +0000 (10:01 -0800)
commit18ec98d63284a969a50048f62c7924b4a1d025a3
tree3a98d680e96d8442f0f296a490e4b109873874bb
parent4c1e23326e1c30e4e051bf588bfc1aaa63954976
Fixed RegExp.prototype[@@replace]().

Previously, when RegExpExec() returned a fast-array with gaps
String.prototype.replace() might return erroneous exception
TypeError: Cannot convert object to primitive value.
src/njs_regexp.c
src/test/njs_unit_test.c