-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Blob regression in v19.8.x #47301
Comments
Is |
Yeah, adding a queueMicrotask fixes it, diff --git a/lib/internal/blob.js b/lib/internal/blob.js
index 4188d999f7..9c6be6981f 100644
--- a/lib/internal/blob.js
+++ b/lib/internal/blob.js
@@ -69,6 +69,8 @@ const {
CountQueuingStrategy,
} = require('internal/webstreams/queuingstrategies');
+const { queueMicrotask } = require('internal/process/task_queues');
+
const kHandle = Symbol('kHandle');
const kType = Symbol('kType');
const kLength = Symbol('kLength');
@@ -284,7 +286,7 @@ class Blob {
}
if (buffer !== undefined)
buffers.push(buffer);
- readNext();
+ queueMicrotask(() => readNext());
});
};
readNext(); |
Yes it was |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
v19.8.0 and v19.8.1
Platform
Linux DESKTOP-L4O1H93 4.4.0-19041-Microsoft #2311-Microsoft Tue Nov 08 17:09:00 PST 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
buffer
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
The test should pass
What do you see instead?
Additional information
this was discovered in a test in undici that works in v19.7 and below, but fails in v19.8
https://github.com/nodejs/undici/blob/a9ef50944e917695b1789ad62fc5e1bb9451d483/test/fetch/client-fetch.js#L202
The text was updated successfully, but these errors were encountered: