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
I've repeatedly encountered an issue where Node.js crashes completely in different scenarios when I'm debugging code that contains a for...of loop. The crash seems to occur specifically before the execution of the loop.
Here’s a minimal example of the problematic code:
for (const [i, assetId] of assetIds.entries()) {
let [error] = await this.account.listing.create(assetId, price, marketName);
if (error instanceof Errors.WalletError) {
await acceptListingsHandler();
break;
}
assetIds = assetIds.filter((item) => item !== assetId);
}
How often does it reproduce? Is there a required condition?
The crash is difficult to reproduce consistently. Sometimes it works after a while, or if I switch to a different type of loop (e.g., a for loop with an index), the issue disappears.
What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered:
This is not not a very useful Minimal reproducible example We don't have enough information. I'll mark this as "needs more info". That snippet is not enough for reproducing the crash.
Uh oh!
There was an error while loading. Please reload this page.
Version
v23.7.0
Platform
Subsystem
No response
What steps will reproduce the bug?
I've repeatedly encountered an issue where Node.js crashes completely in different scenarios when I'm debugging code that contains a for...of loop. The crash seems to occur specifically before the execution of the loop.
Here’s a minimal example of the problematic code:
This is the StackTrace:
How often does it reproduce? Is there a required condition?
The crash is difficult to reproduce consistently. Sometimes it works after a while, or if I switch to a different type of loop (e.g., a for loop with an index), the issue disappears.
What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: