-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
MessagePort.postMessage with custom iterator as transfer list causes Assertion `(index) < (length())' failed. #49940
Comments
Would it be spec-compliant to just convert the value to an array with |
not entirely, but it's better than nothing. For example, something that isn't null and doesn't have a Symbol.iterator won't throw with Array.from, but spec-wise is expected to ( |
someone could use node/lib/internal/crypto/webidl.js Line 324 in 952cf0d
or maybe using Line 947 in 952cf0d
|
Version
v21.0.0-pre (I assume every version w/ structuredClone)
Platform
Linux DESKTOP-L4O1H93 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
or
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
this should work and return an empty object
What do you see instead?
Additional information
The webidl states that a sequence is basically anything with a Symbol.iterator, not exclusive to arrays. https://webidl.spec.whatwg.org/#es-sequence
The text was updated successfully, but these errors were encountered: