From: Dmitry Volyntsev Date: Fri, 3 Apr 2026 00:49:31 +0000 (-0700) Subject: Fixed length prop of an Array instance redefinition error handing. X-Git-Tag: 0.9.7~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=42b4b62afaeec63c1722219eb78f8e7751c702ce;p=njs.git Fixed length prop of an Array instance redefinition error handing. Previously, when njs_array_length_redefine() failed, the function returned directly, bypassing the cleanup of the "keys" array. --- diff --git a/src/njs_array.c b/src/njs_array.c index b8cb9f94..eb700aa3 100644 --- a/src/njs_array.c +++ b/src/njs_array.c @@ -251,7 +251,7 @@ njs_array_length_set(njs_vm_t *vm, njs_value_t *value, ret = njs_array_length_redefine(vm, value, length, prev->writable); if (njs_slow_path(ret != NJS_OK)) { - return ret; + goto done; } ret = NJS_OK;