Conversation
ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER was missing from the docs - add it there based on the wording Anna used in the her PR. PR-URL: Reviewed-By:
addaleax
left a comment
There was a problem hiding this comment.
Thanks for doing the PR here!
doc/api/errors.md
Outdated
|
|
||
| A SharedArrayBuffer object was transfered but we do not see a lifetime partner | ||
| object and it was not us who externalized it - we are not sure how to serialize | ||
| it because it's unclear how the memory is actually owned. |
There was a problem hiding this comment.
This description makes sense as a code comment, but it might not be ideal for the docs. How about this?
A
SharedArrayBufferobject was encountered during serialization whose memory is not managed by the JavaScript engine or by Node. Such anSharedArrayBuffercan not be serialized.This can only happen when native addons create
SharedArrayBuffers in “externalized” mode, or put existingSharedArrayBufferinto externalized mode.
|
@benjamingr Thanks! In fact, this was noticed by a testcase from #21470 😉. |
doc/api/errors.md
Outdated
| <a id="ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER"></a> | ||
| ### ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER | ||
|
|
||
| A `SharedArrayBuffer` whose memory is not managed by the JavaScript engine or by Node.js was |
There was a problem hiding this comment.
Line length here and below)
doc/api/errors.md
Outdated
| ### ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER | ||
|
|
||
| A `SharedArrayBuffer` whose memory is not managed by the JavaScript engine or by Node.js was | ||
| encountered during serialization. Such a `SharedArrayBuffer` can not be serialized. |
|
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
|
Landed in f42aa32 |
ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER was missing from the docs - add it there based on the wording Anna used in the her PR. PR-URL: #21947 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFER was missing from the docs - add it there based on the wording Anna used in the her PR. PR-URL: #21947 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
@ChALkeR noticed that
ERR_TRANSFERRING_EXTERNALIZED_SHAREDARRAYBUFFERwas missing from the docs. This PR adds it there based on the wording @addaleax used in the her PR.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes