-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update nodejs data for Worker
#25012
base: main
Are you sure you want to change the base?
Conversation
This pull request has merge conflicts that must be resolved before it can be merged. |
"nodejs": { | ||
"version_added": "11.7.0", | ||
"partial_implementation": true, | ||
"notes": "Only support `transferList` parameter as an optional array of objects." |
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.
This is not as accurate as the original version though. I think the most accurate way to refer the supported types is https://nodejs.org/api/worker_threads.html#portpostmessagevalue-transferlist.
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.
How about:
Only support passing the second parameter as an optional array of objects, not support passing the second parameter as an options object.
Only support transferringArrayBuffer
andMessagePort
objects.
Summary
update the data for
Worker
, as there is already a ecmascript_modules field shows the ESM supportthe data for
error
event is confirmed with the intial pr nodejs/node#20876the data for
messageerror
event andterminate()
method come from the documentation, also confirmed by release and impl prhttps://nodejs.org/zh-cn/blog/release/v12.19.0
https://nodejs.org/zh-cn/blog/release/v14.5.0
nodejs/node#33772
https://nodejs.org/zh-cn/blog/release/v12.5.0
nodejs/node#28021
Test results and supporting details
confirmed by landing PRs and release notes
also test in local node runtime:
Related issues