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