(err)
| 178 | } |
| 179 | |
| 180 | close(err) { |
| 181 | if (this.isUserFd) { |
| 182 | process.nextTick(function tick(context) { |
| 183 | FunctionPrototypeCall(readFileAfterClose, { context }, null); |
| 184 | }, this); |
| 185 | return; |
| 186 | } |
| 187 | |
| 188 | const req = new FSReqCallback(); |
| 189 | req.oncomplete = readFileAfterClose; |
| 190 | req.context = this; |
| 191 | this.err = err; |
| 192 | |
| 193 | close(this.fd, req); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | module.exports = ReadFileContext; |