| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| [`ArrayBuffer#slice()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/slice | ||
| [`ArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer | ||
| [`SharedArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer |
There was a problem hiding this comment.
Can you please move this line to keep the alphabetical order?
Sorry, something went wrong.
|
Done. I can rebase the commits if you prefer. |
Sorry, something went wrong.
|
No, it's fine, commits are squashed before landing. Thank you. |
Sorry, something went wrong.
|
|
||
| * `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a | ||
| [`TypedArray`]. | ||
| * `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`], [`SharedArrayBuffer`] or the |
There was a problem hiding this comment.
Can you change {ArrayBuffer} to {ArrayBuffer|SharedArrayBuffer} as well?
Sorry, something went wrong.
| 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. |
There was a problem hiding this comment.
Ditto.
Sorry, something went wrong.
| * `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a | ||
| [`TypedArray`]. | ||
| * `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`], [`SharedArrayBuffer`], or the | ||
| `.buffer` property of a [`TypedArray`]. |
There was a problem hiding this comment.
Ditto.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with the comments addressed.
Sorry, something went wrong.
|
I've addressed the comments. |
Sorry, something went wrong.
|
|
||
| * `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a | ||
| [`TypedArray`]. | ||
| * `arrayBuffer` {ArrayBuffer|SharedArrayBuffer} An [`ArrayBuffer`], [`SharedArrayBuffer`], or the |
There was a problem hiding this comment.
The line length is above 80 chars.
Sorry, something went wrong.
| --> | ||
|
|
||
| * `string` {string|Buffer|TypedArray|DataView|ArrayBuffer} A value to | ||
| * `string` {string|Buffer|TypedArray|DataView|ArrayBuffer|SharedArrayBuffer} A value to |
There was a problem hiding this comment.
The line length is above 80 chars.
Sorry, something went wrong.
|
|
||
| * `arrayBuffer` {ArrayBuffer} An [`ArrayBuffer`] or the `.buffer` property of a | ||
| [`TypedArray`]. | ||
| * `arrayBuffer` {ArrayBuffer|SharedArrayBuffer} An [`ArrayBuffer`], [`SharedArrayBuffer`] or the |
There was a problem hiding this comment.
The line length is above 80 chars.
Sorry, something went wrong.
|
Ping @ThomasdenH this needs a rebase and please address the comments about the line length. |
Sorry, something went wrong.
Sorry, something went wrong.
|
@ThomasdenH ... can I ask you to please squash the commits down into a single commit |
Sorry, something went wrong.
|
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/ |
Sorry, something went wrong.
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>
| Back | FazBrowse Home | New Git URL |
Since 2a2ec9d, Buffer accepts a SharedArrayBuffer in places where ArrayBuffer was 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.