Commit 76b1863
fs: filehandle read now accepts object as argument
PR-URL: #34180
Fixes: #34176
Refs: https://nodejs.org/api/fs.html#fs_filehandle_read_options
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 60874ba commit 76b1863Copy full SHA for 76b1863
File tree
Expand file treeCollapse file tree
2 files changed
+34
-10
lines changedOpen diff view settings
Filter options
- lib/internal/fs
- test/parallel
Expand file treeCollapse file tree
2 files changed
+34
-10
lines changedOpen diff view settings
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+13-2Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
346 | 346 | |
347 | 347 | |
348 | 348 | |
349 | | - |
350 | | - |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
351 | 362 | |
352 | 363 | |
353 | 364 | |
|
Collapse file
test/parallel/test-fs-promises-file-handle-read.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-promises-file-handle-read.js+21-8Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
17 | 21 | |
18 | 22 | |
19 | 23 | |
| ||
23 | 27 | |
24 | 28 | |
25 | 29 | |
26 | | - |
| 30 | + |
27 | 31 | |
28 | 32 | |
29 | 33 | |
| ||
38 | 42 | |
39 | 43 | |
40 | 44 | |
41 | | - |
| 45 | + |
42 | 46 | |
43 | 47 | |
44 | 48 | |
| ||
51 | 55 | |
52 | 56 | |
53 | 57 | |
54 | | - |
| 58 | + |
55 | 59 | |
56 | 60 | |
57 | 61 | |
58 | 62 | |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
0 commit comments