-
Notifications
You must be signed in to change notification settings - Fork 5k
MessagePort alignment with Nodejs #19941
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
Changes from all commits
df78820
fd01ae8
64752be
09c8fad
298a91e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5779,6 +5779,7 @@ ExceptionOr<Ref<SerializedScriptValue>> SerializedScriptValue::create(JSGlobalOb | |||||
| if (auto port = JSMessagePort::toWrapped(vm, transferable.get())) { | ||||||
| if (port->isDetached()) | ||||||
| return Exception { DataCloneError, "MessagePort in transfer list is already detached"_s }; | ||||||
| port->dispatchCloseEvent(); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
Spotted by Diamond |
||||||
| messagePorts.append(WTFMove(port)); | ||||||
| continue; | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comment on actual issue. #19863 (comment)
I will emphasis that we should make
WebCoreimplementation to align withe the JS specs and have that NodeJS compatibility layer abstracted away.And until then just having documentation for such points would be suffice.