You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dash.join fails to update mixed arrays properly, leading to unexpected behavior when using join to assign values.
Reproduction
localarray= { 0, 0, 0 }
localchanged= {} -- Must construct like this for it to failchanged[1] =1changed[3] =1-- Expected: { 1, 0, 1 }-- Actual: { 1, 0, 0 }print(Dash.join(array, changed))
-- Root cause: iterator() implementation checks `#changed > 0` to see if it is an array, and-- if it does, uses ipairsprint("#changed", #changed)
forkey, valueinipairs(changed) doprint("this will only print once, not twice")
end