Treat undefine as 0

This commit is contained in:
斟酌 鵬兄 2022-04-05 16:14:06 +09:00
parent 836bdfd33d
commit b7ba3b3ea2

View File

@ -65,7 +65,7 @@ class Chain
// MultiChain
Multi( name, handler, l, timeout, trigger )
{
if( l == 0 )
if( l == 0 || l === undefined )
{
Dragonfly.Info( "MultiChain " + name + ": length is zero, directly running handler" );
handler.apply( undefined, [] );