Commit e371545
buffer: allow .write() offset to be at buffer end
Do not throw if the offset passed to `buf.write()` points
to the end of the buffer.
Fixes: #8127
PR-URL: #8154
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>1 parent c2f5471 commit e371545Copy full SHA for e371545
File tree
Expand file treeCollapse file tree
2 files changed
+7
-1
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
2 files changed
+7
-1
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
714 | 714 | |
715 | 715 | |
716 | 716 | |
717 | | - |
| 717 | + |
718 | 718 | |
719 | 719 | |
720 | 720 | |
|
Collapse file
test/parallel/test-buffer-alloc.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-alloc.js+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
358 | 358 | |
359 | 359 | |
360 | 360 | |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
361 | 367 | |
362 | 368 | |
363 | 369 | |
|
0 commit comments