]> git.kaiwu.me - njs.git/commit
Fixed Array functions according to specification.
authorAlexander Borisov <alexander.borisov@nginx.com>
Wed, 9 Oct 2019 15:54:54 +0000 (18:54 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Wed, 9 Oct 2019 15:54:54 +0000 (18:54 +0300)
commit50c33dee36bb475f0b0187426db4fd553bdc4083
treeef1c9bea8fec3e24b65bcd068301c05a0b1f3737
parentb040b966c470eab5795cd50b0c4f19880cc66feb
Fixed Array functions according to specification.

Length property should be queried before checking arguments for validity.

Аffected functions:
every, filter, find, findIndex, forEach, map, reduce, reduceRight, some.

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