fix(maps/values): modify directly next input cache instead of defer to end

- solves test `destruction of active scope in values` without twice runs
This commit is contained in:
ernisto 2025-04-11 00:54:14 -03:00
parent fb30f84596
commit 36eb9b0433

View file

@ -127,6 +127,7 @@ local function values<K, VI, VO>(input: () -> Map<K, VI>, transform: (VI, () ->
local function update_children(data: Map<K, VI>)
local cur_input_cache, new_input_cache = cur_input_cache_up, new_input_cache_up
cur_input_cache_up = new_input_cache
if flags.strict then
local cache = {}