| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 30b2aac commit c2ec15a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -109,14 +109,18 @@ fs.read(fd, | |||
| 109 | 109 | 0, | |
| 110 | 110 | expected.length, | |
| 111 | 111 | 0n, | |
| 112 | - common.mustCall()); | ||
| 112 | + common.mustSucceed()); | ||
| 113 | 113 | ||
| 114 | 114 | fs.read(fd, | |
| 115 | 115 | Buffer.allocUnsafe(expected.length), | |
| 116 | 116 | 0, | |
| 117 | 117 | expected.length, | |
| 118 | 118 | 2n ** 53n - 1n, | |
| 119 | - common.mustCall()); | ||
| 119 | + common.mustCall((err) => { | ||
| 120 | + if (err) { | ||
| 121 | + assert.strictEqual(err.code, 'EFBIG'); | ||
| 122 | + } | ||
| 123 | + })); | ||
| 120 | 124 | ||
| 121 | 125 | assert.throws( | |
| 122 | 126 | () => fs.readSync(fd, expected.length, 0, 'utf-8'), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments