Open bvanjoi opened 2 years ago
name which got from let name = group.shift() is a function created by runner.bind, it had printed unexpected log in terminal. Location of these code is https://github.com/lukeed/uvu/blob/master/src/index.js#L138.
name
let name = group.shift()
runner.bind
mabe rewrite it to if (typeof name === 'string') // xxxx could solve this problem.
if (typeof name === 'string') // xxxx
This problem caused by UVU_QUEUE[0] is not empty when exec is re-executed, so instead of for (let test of group) (code) by while (group.length > 0) { let test = group.shift()} is better choice.
UVU_QUEUE[0]
exec
for (let test of group)
while (group.length > 0) { let test = group.shift()}
name
which got fromlet name = group.shift()
is a function created byrunner.bind
, it had printed unexpected log in terminal. Location of these code is https://github.com/lukeed/uvu/blob/master/src/index.js#L138.mabe rewrite it to
if (typeof name === 'string') // xxxx
could solve this problem.