mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
test: minor refactoring
Add punctuation and comments about code that should not throw. Also remove a obsolete test and refactor some tests. PR-URL: https://github.com/nodejs/node/pull/18669 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
caee112e52
commit
644fdd60d4
51 changed files with 166 additions and 205 deletions
|
@ -22,8 +22,7 @@ arr2[1] = 6000;
|
|||
|
||||
assert.deepStrictEqual(arr_buf, ar_buf);
|
||||
|
||||
// Checks for calling Buffer.byteLength on a SharedArrayBuffer
|
||||
|
||||
// Checks for calling Buffer.byteLength on a SharedArrayBuffer.
|
||||
assert.strictEqual(Buffer.byteLength(sab), sab.byteLength);
|
||||
|
||||
Buffer.from({ buffer: sab });
|
||||
Buffer.from({ buffer: sab }); // Should not throw.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue