[njs] Large indexes processing has been fixed in
Igor Sysoev
igor at sysoev.ru
Mon Apr 3 12:11:09 UTC 2017
details: http://hg.nginx.org/njs/rev/8f59eeb8ee2d
branches:
changeset: 327:8f59eeb8ee2d
user: Igor Sysoev <igor at sysoev.ru>
date: Sat Apr 01 15:32:04 2017 +0300
description:
Large indexes processing has been fixed in
Array.prototype.reduceRight().
diffstat:
njs/njs_array.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r dc8af19bf47d -r 8f59eeb8ee2d njs/njs_array.c
--- a/njs/njs_array.c Fri Mar 31 14:05:44 2017 +0300
+++ b/njs/njs_array.c Sat Apr 01 15:32:04 2017 +0300
@@ -1716,7 +1716,7 @@ njs_array_prototype_reduce_right_continu
iter = njs_vm_continuation(vm);
- if ((int32_t) iter->next_index < 0) {
+ if (iter->next_index == NJS_ARRAY_INVALID_INDEX) {
vm->retval = iter->retval;
return NXT_OK;
}
More information about the nginx-devel
mailing list