Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write does not meet expectations. #222

Open
bvanjoi opened this issue Oct 25, 2022 · 1 comment
Open

write does not meet expectations. #222

bvanjoi opened this issue Oct 25, 2022 · 1 comment

Comments

@bvanjoi
Copy link

bvanjoi commented Oct 25, 2022

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.

image

mabe rewrite it to if (typeof name === 'string') // xxxx could solve this problem.

@bvanjoi
Copy link
Author

bvanjoi commented Oct 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant