]> git.kaiwu.me - njs.git/commit
Fixed Object.values() and Object.entries() with shared properties.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 26 Jun 2024 23:39:59 +0000 (16:39 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 2 Jul 2024 02:31:46 +0000 (19:31 -0700)
commit69072164673d6dbe069ef05a4b38ef0a7a9d0908
treed75b69c0194d0d023b0cd023efabaa3e8032d51b
parent286d00b93ffa54958aab9a930a844ba4ba83f095
Fixed Object.values() and Object.entries() with shared properties.

Previously, the functions directly copied a shared object from
a shared_hash. The copying is nessessary for lazy instantiation
of shared properties.

This fixes #743 issue on Github.
src/njs_object.c
src/test/njs_unit_test.c