We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c065dc commit 352daacCopy full SHA for 352daac
1 file changed
doc/changelogs/CHANGELOG_V22.md
@@ -79,11 +79,11 @@ When a `Buffer` is created using a resizable `ArrayBuffer`, the `Buffer` length
79
```js
80
const ab = new ArrayBuffer(10, { maxByteLength: 20 });
81
const buffer = Buffer.from(ab);
82
-console.log(buffer.byteLength); 10
+console.log(buffer.byteLength); // 10
83
ab.resize(15);
84
-console.log(buffer.byteLength); 15
+console.log(buffer.byteLength); // 15
85
ab.resize(5);
86
-console.log(buffer.byteLength); 5
+console.log(buffer.byteLength); // 5
87
```
88
89
Contributed by James Snell in [#55377](https://github.com/nodejs/node/pull/55377)
0 commit comments