]> git.kaiwu.me - njs.git/commit
Array.prototype.lastIndexOf() and Array.prototype.indexOf() fixes.
authorAndrey Zelenkov <zelenkov@nginx.com>
Mon, 24 Oct 2016 16:02:31 +0000 (19:02 +0300)
committerAndrey Zelenkov <zelenkov@nginx.com>
Mon, 24 Oct 2016 16:02:31 +0000 (19:02 +0300)
commit76b404587bf7e6d63745edfb72963b70be84e787
tree58c8dc1c6af6463c710d2bcaf82e072b91f77925
parent5e1e326bb04f8c060ded311cbba3f8b90bb80b4b
Array.prototype.lastIndexOf() and Array.prototype.indexOf() fixes.

The fromIndex parameter processing in lastIndexOf() has been fixed.
The lastIndexOf() search algorithm has been optimized.
The njs_array_index_of() function has been removed.

In collaboration with Valentin Bartenev.
njs/njs_array.c
njs/test/njs_unit_test.c