mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
fix recursive queue flush
This commit is contained in:
parent
b85419088c
commit
1eab1aa598
3 changed files with 51 additions and 20 deletions
|
|
@ -1920,6 +1920,34 @@ TEST("batch()", wrap_root(function()
|
|||
CHECK(b2() == 3)
|
||||
CHECK(b3() == 4)
|
||||
end
|
||||
|
||||
do CASE "recursive queue flush"
|
||||
|
||||
local a0 = source(0)
|
||||
local a1 = source(1)
|
||||
|
||||
derive(function()
|
||||
a0(a1() + 1)
|
||||
end)
|
||||
|
||||
derive(function()
|
||||
print("update")
|
||||
|
||||
a0()
|
||||
|
||||
batch(function()
|
||||
|
||||
end)
|
||||
|
||||
return 1
|
||||
end)
|
||||
|
||||
a1(2)
|
||||
|
||||
-- if it didnt error, all is fine!
|
||||
CHECK(true)
|
||||
|
||||
end
|
||||
end))
|
||||
|
||||
TEST("read()", wrap_root(function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue