]> git.kaiwu.me - njs.git/commit
Fixed iterator for Array.prototype.find/findIndex() functions.
authorAlexander Borisov <alexander.borisov@nginx.com>
Wed, 30 Oct 2019 13:43:09 +0000 (16:43 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Wed, 30 Oct 2019 13:43:09 +0000 (16:43 +0300)
commit55e65903c46779836512c6bdcb9aad3adc1b46b8
tree210c19bf82764a422148788ad9e1e910d3f2d411
parent9bfa0828095147f062711ea0d091d543f4411c7c
Fixed iterator for Array.prototype.find/findIndex() functions.

Array might be changed in callback function.  If an array became smaller than
the initial one, it is necessary to iterate the missing values as invalid.

This closes #229 issue on GitHub.
src/njs_array.c
src/test/njs_unit_test.c