diff options
author | LemonBoy <thatlemon@gmail.com> | 2024-06-22 17:25:07 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-22 17:25:07 +0200 |
commit | 7b29cc97d6c1450865969d08c5538a40c304593c (patch) | |
tree | 721ee10de8fae67be6a5503965135131cb895180 /LICENSE | |
parent | 549ecc86365dc625e71e10b958525867c47e1cda (diff) |
patch 9.1.0514: Vim9: issue with comparing objects recursivelyv9.1.0514
Problem: Vim9: issue with comparing objects recursively
(Yinzuo Jiang)
Solution: only set recursive == TRUE, when called from tv_equal(), not
from typeval_compare_object(), refactor code into object_equal()
function (LemonBoy)
The recursive flag in tv_equal should be set only when the caller is
tv_equal, meaning that the comparison depth is > 1. The comparison
predicates for other object types are all following this rule, except
for the object one, and that may cause some weird issues like causing
the max depth limit not to be initialized in some cases.
closes: #15076
Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions