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
$ git clone https://github.com/loynoir/reproduce-deasync-158.js
$ npm install
$ npm test
Actual
$ reproduce_deasync_158_cpu=1 pnpm test
... // No output, 100% CPU.
$ unset reproduce_deasync_158_cpu
$ npm test
index.cjs waiting for ./index.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
plugin.cjs waiting for ./dependency.mjs
... // endless
Expected
No endlessloop. No 100% CPU.
The text was updated successfully, but these errors were encountered:
What
deasync.loopWhile
cause endless loop + 100% CPU.deasync.sleep
cause endless loop.Reproduce
https://github.com/loynoir/reproduce-deasync-158.js
Reproduce
$ git clone https://github.com/loynoir/reproduce-deasync-158.js $ npm install $ npm test
Actual
Expected
No endlessloop. No 100% CPU.
The text was updated successfully, but these errors were encountered: