From 460765b839178f59835ce4e9c32fb627023b3751 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Mon, 23 Mar 2020 19:52:02 +0300 Subject: [PATCH] Fixed "PROP NEXT" instruction. The proper way to access array's elements is "start" field whereas "data" is an allocation field. While currently they are numerically indentical it may change in the future. --- src/njs_vmcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/njs_vmcode.c b/src/njs_vmcode.c index a42cd758..6b74c4aa 100644 --- a/src/njs_vmcode.c +++ b/src/njs_vmcode.c @@ -788,7 +788,7 @@ next: next = value2->data.u.next; if (next->index < next->array->length) { - *retval = next->array->data[next->index++]; + *retval = next->array->start[next->index++]; ret = pnext->offset; break; -- 2.47.3