Add SharedArrayBuffer to Buffer documentation#15489
Add SharedArrayBuffer to Buffer documentation#15489ThomasdenH wants to merge 5 commits intonodejs:masterfrom
Conversation
doc/api/buffer.md
Outdated
There was a problem hiding this comment.
Can you please move this line to keep the alphabetical order?
|
Done. I can rebase the commits if you prefer. |
|
No, it's fine, commits are squashed before landing. Thank you. |
doc/api/buffer.md
Outdated
There was a problem hiding this comment.
Can you change {ArrayBuffer} to {ArrayBuffer|SharedArrayBuffer} as well?
| When `string` is a `Buffer`/[`DataView`]/[`TypedArray`]/[`ArrayBuffer`], the | ||
| actual byte length is returned. | ||
| When `string` is a `Buffer`/[`DataView`]/[`TypedArray`]/[`ArrayBuffer`]/ | ||
| [`SharedArrayBuffer`], the actual byte length is returned. |
doc/api/buffer.md
Outdated
BridgeAR
left a comment
There was a problem hiding this comment.
LGTM with the comments addressed.
|
I've addressed the comments. |
doc/api/buffer.md
Outdated
There was a problem hiding this comment.
The line length is above 80 chars.
doc/api/buffer.md
Outdated
There was a problem hiding this comment.
The line length is above 80 chars.
doc/api/buffer.md
Outdated
There was a problem hiding this comment.
The line length is above 80 chars.
|
Ping @ThomasdenH this needs a rebase and please address the comments about the line length. |
|
@ThomasdenH ... can I ask you to please squash the commits down into a single commit |
|
Linter CI after rebase and squash: https://ci.nodejs.org/job/node-test-linter/13860/ Edit: CI timed out. New try: https://ci.nodejs.org/job/node-test-linter/13861/ |
|
Landed in bd0e36d |
PR-URL: #15489 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #15489 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #15489 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #15489 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #15489 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #15489 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
Since 2a2ec9d,
Bufferaccepts aSharedArrayBufferin places whereArrayBufferwas accepted previously. This PR updates the documentation accordingly.Note that not every occurrence was replaced. In most cases it seems clear from the context that both are accepted, although some might disagree about this.
make -j4 test(UNIX), orvcbuild test(Windows) passes